Bugfixes

- on both the web lib and remote lib we now send a message to the view once the JS callbacks are registered, so we can be sure that websocketDidOpen doesn’t occur before we can handle it
- bugs when a remote device is lost have been fixed, this should now be properly recognized

Master-lost releated code is
 still missing