Make controllers overridable by the application

Adds the ability to change the controllers in which the turbograft hooks are included. Since these hooks add data to the user session as well as cookies, it may be desirable to avoid these side-effects in some parts of an application.

@qq99 @pushrax for review
cc @tjoyal