CYB-346 - Gallery Performance: Refactor front-end for new API changes

https://jira.ets.berkeley.edu/jira/browse/CYB-346