Update cowboy API calls to make it work in 0.8.0
Merge pull request #13 from sedinin/master

Cowboy 0.8.0 issue