Refactor galleries and images

* Add validations to both gallery and image models
* Break out errors into an application-wide partial
* Extract forms out into partials for galleries and images
* Adjust views