Rework command line argument handling

* Always automatically determine file type.
* Add new input file type: just a list of files to load relative to that file.
* Removed resource directory option; maybe should return as a config file option.