Fixes #5531: Wrapping sync controllers in with new permissions.
Merge pull request #4044 from ehelms/fixes-5531

Fixes #5531: Wrapping sync controllers in with new permissions.
Fixes #5530 - CRUD perms for Environments

Also includes changes for the UI and api to deal with the new
set of perms
1) New Env shown only if you have create
2) Can update env only if you have update
3) Can delete env only if you have delete

Controllers and tests modified appropriately.