Use jquery to call the restart command.

Also add success and fail callback functions and change the cursor
to give some status back to the user.