FK-26 Keep image within bounds of trimmer

While image is being moved or resized ensure that it does not move such that any whitespace appears
inside the image trimmer.

Stop the slider from sliding if it makes the image too small.
FK-26 Disable text selection on dragging

When dragging slider or picture starts, stop all text selection on the page
FK-26 Cancel button closes trimmer

Add a event listener so that the cancel button will close the image trimmer
FK-26 Keep on same point of image while sizing

Adjust the refocus image method to keep the focus on the same point of the
image while it is being resized.
FK-26 Show different cursors during move and slide

When move action starts, change the body's cursor to move.
When hovering over the image container, change cursor to move.
FK-26 Move image trimmer into module

Image trimmer new resides in a module
FK-26 Further into the modules

Using the application start method to start the app and all its submodules.

Create an application initializer to perform startup tasks.

Add an initializer on the image trimmer module to set up its infrastructure.
FK-26 Build out image trimmer module

Create a layout as the master view for the image trimmer.

Create a new view which will be used to pick different image types.

Create a "here" method which is used to start and place the module in the dom somwehere.
FK-26 Add some events in the module for image

Image trimmer should be controllable from the perspective of the module.
Create some methods at the module level and wire them to events to have them
control the image trimmer.
FK-26 Installed new gems
FK-26 Overwrite event sync method with XHR2

Create a replacement XHR2 request that can create an event in place of the
default backbone sync method. This is the basis of the implementation needed to
save images asynchronously.
Merge branch 'master' of github.com:jlebensold/kiwi into image_trimmer

Conflicts:
	Gemfile.lock
	app/assets/javascripts/kiwi/kiwi.js.coffee
FK-26 Fix gemfile conflicts

Gemfile had conflicts that were not resolved in the last merge. Fix them.
FK-26 Create image trimmer spec

Create a simple image trimmer spec that confirms that the image trimmer dialog
is removed from the DOM when the x or cancel buttons are clicked.
FK-26 Upload images asynchronously

Add Paperclip and Mongoid Paperclip for saving images and to a mongo database.

Use form data in sync method of events to send back a multipart/form-data request including the
event image now.

NOTE: to use paperclip it was necessary to install ImageMagick. This was installed by
sudo apt-get install imagemagick.

Added paperclip's file directory to the repository ignore list for versioning.
FK-26 Link up url for thumbnail image

Use the url generated by paperclip to display a thumbnail image in the event list.

Change image settings of paperclip to not mantain image resolution, just take a chunk out
of the image instead to match the required size.

Use the old default image as the missing image for paperclip instead of a default.
Issue #26 Show uploaded image in image trimmer

When an image is uploaded show a preview of the image in the trimmer ui.

Also, the ui now starts hidden, so have it appear before showing the image.
Issue #26 Crop thumb image by fixed dimensions
Issue #26 Send crop parameters from trimmer ui

Calculate some height and width from the image trimmer and save it as part of a
form to be submitted with the event.