Add stacktrace buffer

fix ensime/ensime-server#396