CYB-368 - Gallery: browser back button in item detail view doesn't return to gallery main

https://jira.ets.berkeley.edu/jira/browse/CYB-368
@nicolaasmatthijs agreed, we shouldn't hold up the pull, both these issues can be done in the 1.x.