Directories support

Directories supports, adds a new view that lists files for a directorie. Config is now a singleton.