Added a namespace for collecting file format tools.

These types of functions are sprinkled around, making them
hard to find/reuse, maybe collecting them in one spot is good.

Also included a decorator to check for file types to remove
some of the is-this-file-of-the-right-format-if-not-bail
boilerplate.