ruby script to generate the routes based on the rails PR.

https://github.com/stevegraham/rails/pull/1
Add benchmark and bug fixes