Upgrade to cowboy 0.9.0

Should close #159. All tests pass. Please, consider applying