Update gems and make some adjustments for newer devise versions