Fixed Devise login/registration. Added environment keys for s3. Fixed flash message in layout.