Merged Pull Requests 45 & 46

The Pull Requests 45 and 46 are both essential to run sockjs-erlang with the current versions of Erlang and Cowboy.
This might save you some work when merging all together.