Check for cookies using angular-cookies before using the API.
Merge remote-tracking branch 'origin/feature-jwt' into feature-jwt