Made some minor fixes.

- The act of sending a message and waiting for a reply in the client
  handler has been refactored out into `send_and_await_reply`
- lnsd.py now handles errors raised by getopt properly, rather than
  possibly dumping tracebacks.
Added the CLI query tool.
Moved all of the files from lns_ng over to lns.

The legacy lns source code isn't needed anymore on this branch, since
all the necessary components are done.
Updated the version number for lns.

Now that the reactor port is tentatively finished (pending further
fixes, which is why I'm not merging this into master yet), and the new
version uses a different network protocol, there is enough breakage to
justify a new version number.
Removed socks module since the proxy is no longer supported.
Fixed a herd of bugs found while testing.

- The command line program would print a traceback when the server
  dropped - now, it prints a simpler message to sderr
- Renamed 'ping' to 'announce' to reflect the name of the Announce
  message.
- Fixed how the configuration values are read from the configuration
  file.
- Added a check to prevent on_announce_timeout from throttling the CPU.
- Added the host <-> IP mappings bookkeeping to on_message
- Made the client catch exceptions at the top level, so it can print
  messages rather than tracebacks.