capture imported modules

also add an import statement, but probably going to kill that
and just extract the imports from wherever modules are used

reordered the resource type IDs to put imports first

fixed up the qbi resource output. still not outputting actual imports though