Simplified signature of session callbacks.
Loosened restrictions on entity state transitions.