Completely separated socket info per gateway worker.

Added handling when new socket info cant be obtained.
Switch to number of connections per worker instead of total number.
Refactored jsonpatch and jsonpointer to allow additional implementations and stateobjects to be used and not only typedjson.
Fixes after refactoring for jsonpatch and unittests.
Merge branch 'jsonpatch_refactoring' into develop
Added reference to socket info struct inside socket data.
Changed the code according to new socket info reference field inside SD.
Merge branch 'develop' of https://github.com/Starcounter/Starcounter into develop
Removed pad from socket info since socket infos are not shared.
Merge branch 'develop' into issue/launcher/13
Commented out setting and readin options on session until they are actually used.
Not checking session if appname should be written or not.
Removed unused code.
Calling mergerroutine for all requests if merger is declared and not only for internal requests.
Returning null instead of exception from json.GetHtmlPartialUrl to be able to check if a partial url is declared without catching exception.