migration from M6 -> RC2a

adapt the project to work with spring security oauth RC2a. many changes
in spring were done, so needed to refactor the code to adapt.