Add support for "formaction" and "formmethod" attributes in remote forms

This patch prevents situation when "formaction" and "formmethod" attributes are ignored on remote form submit. More about that attributes in http://www.w3.org/TR/html5/forms.html#form-submission