Beginning the metadata extraction process

Added the start of the metadata extraction process. Mostly just partial
file type sensing. Probably a better way to do it that isn't a bunch of
'if's. We'll see.