Updates EntityController with corrected permissions checking, updated media controller with correct permissions checking, added unit tests for the permisions filters.
Fixes up more permissions checks, refactors MediaController.PostAddFile to use the correct WebAPI usage. Fixes issue with UmbracoClientManager throwing errors because the treeProps didn't include all called props.