Update cowboy API calls to make it work in 0.8.0