rails 4 template for creating API applications that support devise login via json