Added start and end day callbacks.

Also make task routine ctrl-c-able.
Quick fix for empty node ids waiting for #41
Fixed some bugs in demanding tasks and added cancellation services.