Hacky HTTP 1.1 persistent connection model for the sync server

The code it's absolutely hacky, and it's intended only as a prototype