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 stable until 1.0.
Merge pull request #7 from sebmaynard/cowboy-0.8.5-api-update

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