Make all requests over https. Also switched to php and allow changing the query with a GET or POST argument