Adding "imports" and "global_scope" insertion points for plugins
Fixing some compiler warnings
Merge pull request #2 from gregschlom/master

Adding "imports" and "global_scope" insertion points for plugins, fix compiler warnings