Convert forms to ajax

http://manage.dimagi.com/default.asp?115095

Changed each form to submit asynchronously.

It now tracks changes for the other two forms as well and tells the user what has been saved successfully.
A dict seems more like a set than a list does in this case, especially since the order of items is not important. `indexOf` and `$.inArray` in the list implementation rub me the wrong way. Granted, with `n = 3` the difference in between a linear search and a hash lookup is insignificant. Maybe it's just personal preference?

Aside: in the Python community many people used dicts as sets before sets were added to the language.