Bind handler to container before creating route

Allows proper use of this in handlers