Refactor security demo, move logout button to nav menu, add descriptive
javadocs.