The frontend only ever deals with GeoJSON formatted objects now. This
means that the params we receive and their structure (e.g. top-level
keys for geometry and properties) are now well-defined.
~bundle: Updating mongoid to fc58942 since it uses origin 2.0.0.
~bundle: Updating carrierwave-mongoid to 0.6.3. Previously it was on
0.1.0 only because its dependency mongoid-grid_fs (dependent on even
if you're not using GridFS, see
https://github.com/carrierwaveuploader/carrierwave-mongoid/issues/94)
doesn't have a release with mongoid 4 support. 0.1.0 didn't have hard
version restrictions that's why this was bundled in the first place.
Instead of one photo a spot now has many embedded attachments. At
least one is required.
PhotoUploader got renamed to AttachmentUploader since it'll accept all
types of files. To differentiate between the file types we store the
MIME-Type in the content_type field of Attachment.
When serializing spots their attachments are serialized through the new
AttachmentSerializer.