Add error handling

* Add an application folder, put genericized error message generator into it
* render the error messages from the partialin galleries and images new and edit forms.
* extracted the form for galleries new and edit into a form partial
* created a partial to handle new and edit forms for images