Add Spring Security and Refactor project.