Latest version of windshaft server script. Requires some cleanup