Added cleanup() method to tasks.
Moved task parser to separate package. Moved world factory to world package.