Added specs and passing code for backend task manager
refactored spec, code, and console programs