Fixed up the server validator
Changed the PermissionsRepository to be more like the RecycleBinRepository in that it is stand alone and just gets created by other repos that need it (instead of being inhertied from). Added more methods for querying permissions and added these methods to the user service/repository. Converted one of the webapi permission check filters to use the new api.
Fixes up tests for content permissions repository with permissions repo change.
doh, re-publicized EntityPermissions... caused test errors.
Adds more code and tests for permissions checks