Move foreach and log to own modules

And use the readline node.js built-in instead of doing it the crappy way.
Variable name improvement
Add job types.

Each job type has it's own queue
Tests: add test for 'default' job type
Tests: refactor, condense three lines
Tests: reorganize a bit
Tests: add one more for the deafult queue
Tests: refactor a bit for dealing multiple jobs

Also, use the for_each module for reading lines, cause it's better than the
hacky was I was doing it.
Add unique job-ids
Add feature: marking jobs as 'finished'

Allow clients to be notified when a particular job is finished.
Add notify:true option to 'add' command

Using notify:true will delay the ack response that usually happens after 'add'
till after the job is complete.
tests: prefix logs with 'test: '

for easier identification when mixed with server logs