File download support moar better

File downloads are more intelligent - pull from database. FileSchema still needs some work. Main layout needs to be smarter.