Make webserver independent, clean up

* Remove reliance on apache
* Use @var in templates
* Create user for syncing