add file type discovery and resolution to ec_file
Merge pull request #35 from ericbmerritt/next

add file type discovery and resolution to ec_file