Make some comint variables local to sbt buffer

Also started using the setq-local and defvar-local macros.

Fixes #10