Simplify type detection
Create minimalist file class

Ultimately I may totally rethink this but for the time being I need a
model for a file on disk...