Implement Task and Resource managers.

Implement context and lock management around the manipulation of Nodes
via TaskManager and ResourceManager classes. Usage guidelines are added
as docstrings, with a single example in the ManagerService.

Part of bp:ironic-manager

Change-Id: I679ae94ed9ef1c814bc26529cd6360d02292ad40