Reorganized source to build with Gradle (for my own purposes).