The event gets an extra parameter: for `before-insert` and `after-insert` the inserted piece of html. For `before-remove` and `after-remove` the removed piece of html. This way one can add effects/animations if needed.
The remove code has been refactored (less code duplication), and checks for a possible timeout, which can be set in the `before-remove` callback.
the -position data attribute doesn't really "make sense" when adding
the "append" or "prepend" methods. those aren't "positions". I try to
be grammatically correct. :)
- moved cocoon.js to app/assets/javascripts
- adapted install-generator accordingly (for rails 3.0.x)
- made it an engine instead of railtie (to use the asset pipeline)