Move main source files into a package.
Add unit test framework.