Implement emacs-style join_lines

This pull request implements a more emacs-like join lines feature.

This is my first attempt at using the sublime API, so apologies in advance for anything I got wrong.