Add support for goog.module based imports

- option to enable goog modules
- golden file based tests
- based on moduleName for the current file

Based on @vojtajina's initial work.
I guess these logging calls are not intended as part of the test?