Restructured the application to use a better directory layout.