Added new logging functions which inject timestamps
Changed URLs to match actual server
Added query_add_event to mainbox code
Made errors less noisy
If it can't connect to a tool, it will print an error once, and thenprint another message when it is able to reconnect.
Added getopt for inputting serial device and CRM server
Initial commit of mainbox code.