Support for multiple instances of VIM

Now whichever instance can connect to LevelDB also listens on a unix
domain socket, and other instances can connect to it.

Also removed redundant thread termination code on VIM exit. Daemon
threads stop themselves.

Fixes #8