added libev. started implementing buildin queue.

added necessary libev code for event loop. pared down log entries.
added locking mechanisms for queue. temporarily removed worker thread
function code.