Lite refactoring. Task sköter nu timeout
More abstraction. Tasks now handle timeouts etc. Lots of code removed from factoring.go :)