Expose the whole repo as a package

Including the tests (unforntunately), though this makes it possible
to avoid path hackery either in the tests or consumers of this package.
Update imports in the tests accordingly.