Bug 902118 - Removing generated hidden form fields

When submitting an ajax form to change application type modes, the rails
generated hidden fields are stripped out.