added build_controller method to Mojolicious