introduce devise

A first attempt to rebase my devise branch against current master.
Some commits are still missing, but maybe a first feedback could be nice.

If you open a devise branch, I put the PR against that one.