Convert forms to ajax
Remove unnecessary hash initialization
Remove unnecessary ajaxForm calls
Merge pull request #4008 from dimagi/leave_page_prompt

Convert forms to ajax