ref #44 Partially fixed, as chrome online/offline functionality is completely broken and unreliable, when a send fails it now tries to reconnect automatically.

It does not fix the issue where starting the application in offline mode it will not be able to connect once internet returns. This is acceptable for now as offline functionality is yet to be implemented.