Refactoring and metadata

* Makefile now treats SVG output as precious
* PHP script broken up into more functions to pave the way for layouts using external files
* "presets" directory created, to hold constant definitions for dimensions and the like
Some more cleanup