Add test for DELETE of a task & restructure the things

@mekanics please make sure, that you use small functions w/ callbacks instead of huge nested functions. Also we should strive now to support REST/JSON in order to make tests easier/working