display_commit more robust

Don't raise an exception if the revision can not be determined.
Upgrade to Devise 3

solves #564
Merge branch 'staging'