Move source and test code into appropriate directories.