Auto detecting module type

This is an initial spike to determine the file type.  Wasn't sure what AST-NAMED was.