added authentication

Allowing with auth only .json requests.
Using devise gem for auth
devise config
fixed logout link in header
devise login/logout locale added translation