gallery page - add getPermissions function
gallery page - add getPermissions function

- add an asynchronous call to load the user permissions for the page, resolving a promise once we have them.  The permissions are needed to render the gallery client side so we don't allow restricted functionality for users that shouldn't have it.  NOTE: Verification must be added to the server as well to ensure malicious users can't do things they're not supposed to.

autoboxer/MARE,autoboxer/MARE