-spec to_liveness(non_neg_integer(), boolean(),
boolean()) -> liveness().
Convert information about liveness to a sortable non-negative integer replicated via CRDT.
Arguments:
true of the update is made by the site itself,
false if the target site is updated by the 3rd party.
true if the site is up.
Bits in the integer are organized such that: