Feature/rails3 random password

This is a work in progress, just to document the stuff while I'm away, should anybody feel like tackling this. Do NOT merge it just yet.

The relevant OP tickets are https://www.openproject.org/issues/777 and https://www.openproject.org/issues/1024.