Reorganized save.php and download.php into a simple controller.