Cleanup

Pull in necessary bits of inline image paste code from:

https://github.com/Rovak/InlineAttachment/blob/master/src/jquery.inline-attach.js
WIP - implementing events for inline image paste