logproto-client: Implemenation of the 'keep one message' functionality

Signed-off-by: Daniel Gados <gdani@balabit.hu>