A proper hook for esc-mode!

Also some updates in shoretel.el