Configuring spring security

Configuring spring security to read the users and roles from the
database, as well as checking passwords agains bcrypted passwords