removed (almost all) PHP from the page

refs #3.

the only remaining PHP code are `include` statements. they will be removed next.