Added selftest functionality.
The random distribution is fair.
Status request returns status message to client.