ManualImageCrop - SSL check

wp_upload_dir() does not handle SSL properly. This checks for ssl for processing. There is a core hack thats old - it's been an issue some time: https://core.trac.wordpress.org/ticket/13941  - but this works for our purposes. See any downside? I believe this will fix issues where many users are complaining of ajax just hanging.