Add more generic logic to use, smarter logic based on url refresh and active link state in JS. Add functional tests + unit tests. Separate amazon s3 policy generator out of the controller.
Refactor and add more generic JS, easy classes for userOnly and guestOnly based on command.