Shorted modbus timeout
Removed pid file necessity
Still uses it if running as root, but otherwise doesn't bother. Shouldbe a bit easier for local testing.
Added stop command and fixed pid file deletion
Major changes to mainbox code.
-Added local cache for RFID -> tool permissions-Queries new page /crm/roboauth/%08x, which gives bitmask of all toolpermissions instead of just one-Added pid file at /var/run/tooltron.pid-Now must be run as "tooltron run" and also has "tooltron refresh" and...
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.