Started implementation of actual broker.

The model is quite complicated so far; it uses several unordered_maps to
store transactions and additional data as well as event handlers which
are called on certain events, e.g. "Persistence layer sent CHKDPASS".