preliminary plans page, compressing images, and lots of refactoring and bugfixes