Remove bootstrap-file-input as we start integrating Backbone Upload
Manager now.
Initial integration of Backbone Upload Manager and its dependencies
jQuery File Upload and Backbone Defered View Loader.
Actually rendering the Backbone Upload Manager when opening the form.
It loads its templates asynchronously (maybe we'll change that later).
To submit the form you currently have to press start uploads after
adding a file.
Removing the bower component jquery.iframe-transport as this gets
shipped with jquery-file-upload.
Submitting the form data is now done through either Backbone Upload
Manager (if files are present) or through a standard Backbone.sync on
model.save. Interestingly the onSubmit code got cleaner because all
that header and AJAX config is now handled internally by Backbone
Upload Manager's dependency jQuery File Upload. Furthermore the
templates where changed to match our needs.
Unifying the attributes of spots (and thus the form field names) to
always be compliant to the GeoJSON spec and use their properties object.
This makes reasoning about attribute names and structure easier and
there are no assumptions about the schema of the models in the backend.
Overriding the icon-plus styling of Backbone Upload Manager with
that of bootstrap.
The two cases with no added files are now handled. Either we're dealing
with an existing spot that already has pictures and no new ones were
added. Submitting the form with the standard Backbone.sync was
already in place for that case. Or the spot was just created but no
files were added. This will just add add an error text to the
uploader now and the form won't be submitted.
If we don't set uploadUrl on Backbone.UploadManager it'll always use
its default and not the form action URL.
progess bar styling for file uploads improved.
Renaming the input name of the file upload to match what the backend
will expect and to better fit into the GeoJSON approach of having
properties under a "properties" key.
Renamed Spot#getThumb to #getThumbs as it can have multiple now.
Serialize the thumbs of a spot to the form so the handlebars template
can loop over them.
Merge branch 'topic/backbone_upload_manager'