previews: initial release

* Adds initial infrastructure for previewing files.

Co-authored-by: Jiri Kuncar <jiri.kuncar@cern.ch>