Add a task entity manager

Change-Id: I8ac376ad066bd820c5185a877be4bbd75dc80ce8