Removing jQuery and Rangy dependencies, refactoring selection, adding support for Formatting rendering.