Clean up the path remapping.

Move the remap logic into its own file and add tests.
Replace :base with @base and have it behave as all other mappings.
Add a debugging message when mappings are not found.
path.resolve all remapped paths.