Implementation of a file manager to simplify controllers

Stills needs tweaks to work, posponed to next version.