Use home_url rather than admin_url to prevent cross-domain ajax
Support front and backend URLs
Merge pull request #108 from borkweb/5446-bad-url

Use home_url rather than admin_url to prevent cross-domain ajax