Adding some threading + queuing goodies to (hopefully) stop blocking things

plus a "flusher" that causes the queue to push to Loggly at intervals so
that stale records don't sit around during low traffic.