Reorganize documentation

Document the lockd protocol separately from the client/server
installation and usage instructions.

The idea is that most people who want to use this program will probably
be interested in the client library, and they may not care what the
underlying protocol looks like.
Add client library with tests; works over TCP sockets