Completely refactor getTasksNode and getDatanode
Refactor out constants into separate constants files
getAllTasks in internal datastore is replaced with a generic getAll
Change API to make use of the generic getAll, add getAllResources
Fix internal test to adhere to the changes