Added the spring framework to the project. Started refactoring to use the spring framework injecting services.