Support for rails engines route prefix

This is merging the work on harai:route_prefix_prototype in PR #322
This only tests with the engine routes in some of the tests.