Allow specification of InputFilename but OutputDir

Not fully implemented, but getting there.  Need reliable way to check if
a string is a dir or a file, maybe using extractfilepath etc.
Added default ext

Default extensions for various types if no output file specified.
Additional Tests

Test to check single file and single file with output dir
Output to folder

Output to a folder now working.
Updated Tests