Fix ensime/ensime-server#424

This is mostly @slipset's change ; I rebased and added support for stacktrace highlight, also added menu entries.