Add validator to getDirectRoles

https://github.com/sakaiproject/Hilary/issues/333

- [x] Check that at least one principal id has been provided
- [x] Check that all provided principal ids are valid
- [x] Check that a resource id has been provided
- [x] Check that the resource id is a valid id