added a nonce cache that keeps a max number of nonces to avoid simple replay attacks.
exported common.fetchType
moved the logging of disconnections to the end of the function. added a response for the user subscription even when there is no user.
moved mainView into the backbone view extension. refactored the doRender function. used backbone listenTo instead of my homemade listen (and it suddenly works!).