Yes, you can do all of those things with sublime's API (https://github.com/wuub/SublimeREPL, https://github.com/SublimeText/Origami). Yes, emacs is more extensible, but not where it matters, really. I.e., I don't think you're going to see any cool feature made with elisp that can't be ported to sublime.