Fixed auto-logout and ajax requests
Merge remote-tracking branch 'origin' into release