More stuff

Not yet functional, the library now has a client protocol.