Cleanup imports

Remove a lot of unused imports, as well as using absolute paths instead of relative paths in many places.  This reduces ambiguity and should make it more robust when trying to do a proper package installation.