Set $url to the correct protocol

When the WordPress admin is using a different protocol to the website, the form won't submit via ajax because $url has the incorrect protocol.

$url can be set to the correct protocol under all conditions using is_ssl.
Merge pull request #256 from TomFrearson/Using-ajax-with-https-/-1

Set $url to the correct protocol