Implemented new task interface. Added idle task. Closes #53. Closes #57.