WIP on long polling fallback when websockets are not available
more WIPsies
Functioning long polling implementation. Automatically falls back to it if websockets not defined. Very possible there are still some bugs though.
Fix reaping of polling entities
Fix encoding for http-post RPC to JSON