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 ticket is https://www.openproject.org/issues/777.