Removed dependence on Apache and PHP. Implements most of #22