Update nowin server factory, fix project.json, fix environment controller so it works