Move various classes to relevant subpackages.
Add missing license headers
Add helper scripts for testing to the repo.