Refactor code for creating and editing objects.

Add to each object creation form a method to be called when the form is
submitted. Begin the same process for object editing and deletion.