move "Routes" section back up in application.rb
fix up: modify Main route handler module
fix up: add a workaround for Ruby before 2.1