Reorganize sources and tests.