Fix group edit button display

Adds spinner to modal on click, closes modal on callback, adds a couple helper functions for button spinners.

Refer to: http://manage.dimagi.com/default.asp?133214#753063