Adding heartbeat, on socket close code and close reason, and refactoring code to use WebSocket enums rather
Increasing heartbeat time interval
Using MS suffix
Fix errors on phoenix.js client and handle heartbeat messages
Resolve conflicts