Fixes login issues with JS

When user entered wrong credentials a login screen still tried to fetch
allowed organizations. Also an error notification was not displayed.
965735 - Default System Custom Info : No error displayed on trying
to enter a duplicate keyname
Merge pull request #2348 from ares/bug/login_unauthenticated_requests

Fixes login issues with JS
965790 - Publish user admin flag
Merge pull request #2364 from komidore64/bug_965735

965735 - Default System Custom Info : No error displayed on trying to enter a duplicate keyname
properly recreating model index upon reindexing
Merge pull request #2375 from jlsherrill/reindex

properly recreating model index upon reindexing
Merge pull request #2372 from ares/bug/965790_admin_flag_propagation

965790 - Publish user admin flag