Fixed issue #238 - Audit code for missing callback error handling paths
Fixed issue #243 - Confirmed that corsOptions() function is dead code and removed it from server/index.js
Merge pull request #248 from yoavgurevich/issue243

Fixed issue #243 - Confirmed that corsOptions() function is dead code an...
Refactor server logic for websockets and sync
Fix #232 - Don't broadcast out-of-date message to clients who haven't done initial sync
Test
Rebased refator