Callback to removing media and getter for Range

--added a method to get Range object from Editor object(allows to insert node from inside of callback like onImageUpload)
--added a callback to Editor.removeMedia() so some action can be performed like removing image from server etc.