Fixed rendering problem with <button>; changed back to <input type="submit"...>.
Changed returned data to JSON with a type, event_id and message.
Returned groups and members to the display_event view so that they turn up in the form.
Trimmed out unused bits.
Moved some code from templates.
Moved some code to script.
Consolidated the forms into one. Added a few form elements for invitations.