Extract duplicated edit logic into shared view

This view can be used for both the person and the organization editing
view so the logic isn't duplicated between these two very similar pages.