Add forced restart support to restartPhp command

By default the WebAPI tries to restart the server gracefully. Providing the force parameter forces a direct restart.