set up PHP template system
Merge pull request #2 from mhfen/templates

set up PHP template system