Add masonry to contexts display and random images

* Use masonry for the grid of contexts in folder view
* Use random images for now
Add remove listener method on layer querying
Fix close button of the catalog

It should go back to root if we are searching and close if we are
not searching and already on root.
Change layout for integrating sidebar in backend

* Add back preferences, users and accounts menu by putting them in sidebar