Added clarifying comment for code that confused me
TODO document all this lol
Fixed build warnings from last commit
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
query.c has optional debug output for /add_card_event
Event submissions from ./tooltron tested and working
Added username/password to add_event query
Fixed curl SSL queries failing and queue bug
Added query_add_event to mainbox code
mainbox now prints error on 404 or 500 from server
Added getopt for inputting serial device and CRM server
Added query.c for queries from database web interface