Update Rails version and other gems

Also switch from CanCan => CanCanCan.