Feature/rails3 migrate former passwords

Implements https://www.openproject.org/issues/2579