Use the application object to access the middleware property
Merge pull request #1 from customink/succint_mw_init

Use the more succinct style of railtie initializer