Refactor bulk edit

Even though this looks like a big change, it's not super significant.

1. A bunch of template code is moved to other files to help increase clarity
2. names now have underscores (spaces are not valid in name attrs)
3. IDs are now field names (with underscores) rather than arbitrary numbers.
4. Some of the js methods were refactored to account for 3.