support form attribute for submit buttons

In RackTest allow for submit buttons to be outside of their form when they have the  form attribute set. Should fix issue #955