Add action to clean up unused imports.

And some infrastructure for unit tests.
Move resources to the src/ dir, fix packaging.