Merge pull request #27 from rrthomas/master

Regularise error throwing in staticNode.js (fixes #21)
Add some Emacs settings
Minimal ternJS support