Add CDI to project.
Refactor some code.
Add logout action
Add messages page
Add pages