fixed hearbeat not initialized properly, small reactorings
Merge branch 'devel' of github.com:igm/sockjs-go into devel