Updates mapping and entities.
Adds security listener.
Adds logout listener.