Socket use and json-mode

- enabled socket for server at /tmp/emacs<uid>/server
- added json-mode
- set json to be indented with 2 spaces