previews: initial release

* Adds initial infrastructure for previewing files.

Co-authored-by: Jiri Kuncar <jiri.kuncar@cern.ch>
base: rename messages macro to flashed_messages

* In order to avoid conflict with the messages module.

Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>