Add Tenant class; remove application and task methods from DBService; delete obsolete TaskManager tasks.