Update rails.

Signed-off-by: François de Metz <francois@stormz.me>
Extract methods from the users sessions controller.

Signed-off-by: François de Metz <francois@stormz.me>