cleanup

* removed deprecated server.php script
* refactored zts check
* switched to new build integration