Added producer for the persistence context. Removed unnecessary references to the PicketBoxManager. Using IdentityManager automatic injection. Added initialization event handler for security.
Merge pull request #1 from pedroigor/master

See comments.