Templates: Added a templates directory, and moved the main bit of html to it.  Separate file for html, the main php, the php functions, and the css.