Added on reply/request/connect functions. 

* Also fixed some defaults arguments.
* Also added some support for functionality recently added to bosh/tcp e.g. not crashing on bad parse and "timeouts" Needs more work though

Problems:
Lots of {ok, _} = which will cause crashes
Not sure when on_error is called, if it is going to return failed requests for example. timeouts etc
This was tricky,  and still not sure about it, the other transports use infinity as a default, but then again the other transports infinity timeout will still probably timeout from tcp...And I think wsecli has some magic numbers that will timeout also. Will investigate more on monday