Terminal support, savefile locations, elisp REPL

* Added terminal-mode-hook to allow use of M-x while in terminal buffers.
* Redifined linum-on to ignore terminal and REPL-type modes.
* Use desktop-save-mode unless we are on the command line in OSX.