Update the handlers, app env and dispatch to support the new Cowboy 0.8.5 way of doing things

Hopefully the Cowboy api is now going to be stable until 1.0.

Changes:
- switching the dispatch config to using "/path" instead of [<<"path">>]
- moving multi-part paths to cowboy path bindings
- updating the application startup to use the new cowboy_router compiler