Added missing dependency checks, reformatted, finished basic setup of GS WebSocket connection