Make import location configurable

Adds support for configuring how to import the base element. This is implemented with prefix overrides, so everything that starts with a prefix will be mapped to certain package. The order in which prefixes are specified doesn't matter (we'll sort them to make the best match win).

There is also the option to override the import for a specific file. 
R= @justinfagnani