Switched the js and php from using HTTP GET to HTTP POST requests.

First commit changes the javascript. Second commit changes the php.