Erlang / Cowboy

Tested to work with the extend/cowboy master and Erlang R16B.