Refactoring the tasks app for owncloud