Added producer for the persistence context. Removed unnecessary references to the PicketBoxManager. Using IdentityManager automatic injection. Added initialization event handler for security.