Refactoring, moved all task handling code to task.py
Merge pull request #26 from nidzo732/improvements

Refactoring, moved all task handling code to task.py