Including "policies" into task spec

* Added an individual TaskPoliciesSpec to encapsulate policies
* Added "policies" to task spec
* Fixed unit tests

Change-Id: Ifdb22b3fa371acc0e153e59a0fd149408d43a755
Merge "Including "policies" into task spec"