Provides promise-like mechanism for chained websocket inits.
Uses sql database as user identifier
Fixes bugs in beaming code and in polygon code