Fixed bug where js client would receive a message before having received connection_open thus causing it to try to search the undefined devices object throwing an error.  Fixed by adding messages to a queue if they are received before connection_open and processing them after connection_open is received