Changes to support Cowboy 0.8