Partial support for cowboy 0.8.5

Still breaks weirdly on some headers