Unindent all declarations

Because we removed the Locator module
Use initial floor size of 0x0
Add some type safety + Stop & start refresh on reset
Disconnect and reconnect on resetServerState

Fixes state.isConnected permanently becoming false after reset.
Fix: set content-type to prevent strange jQuery behavior

JQuery will infer JSON and produce an error on an empty object. The problem is that the error is sometimes located in the d3 library, even when no d3 functions are involved.