Do not crash on malformed json message on websocket.
Add comms tests.
Adding UI unit tests
Fixing settings usage in UI
Refactor inner workings of registry.js
Defining storage interface.