Add devise as an authentication system

@kenyonj @georgetmayorga @liantics
The `-%>` removes trailing space. You can do `<%-` to remove leading space, too.