Toy project: Trying to work my way up to a reasonably robust socket server.