Merge pull request #1 from kageurufu/master

Support for web forms downloaded by the client via ajax.
fixed #3 use of secure URLs when request is secure