Began implimenting state machine for worker threads

Refactored sources under 'src/', adjusted Makefile to compensate. Began
writing ragel state machine to control worker thread actions.