add support for Gemfile.d and routes.d plugin mechanisms

Do not merge this without merging the corresponding pull request for the crowbar repo! otherwise the monkey-patching will break and your engines will not be mounted etc ...