Add devise as an authentication system

@kenyonj @georgetmayorga @liantics
use 1.9 style hash syntax