Password encoder

Good morning guys, I moved the password encoder to commons module, that makes more sense if we're planning to add new algorithms.

This change also enable users to specify their own password encoder or use another algorithm with PicketLink. 

I've added 1 unit test for it, but let me know if you guys are missing something.