Avoid taking a lock on each caerLog() call, this way it boilds down to two integer compares, and you can keep
debug logs even in tight loops and they won't have any big impact when disabled.
Implement TCP server for remote control. Gets the data and interprets it, and then passes it off to be handled
by a request handler function. Ensures correct close()ure on termination.
Add error logging. Start work on config actions.