Fix XSS in select2 formatter
Revert "if we are loged out and do ajax, we can redirect to login page."

This change results in a JavaScript dialog, which breaks cucumber tests.

This reverts commit b3262028dbe96136cc4def5f0d839cddbd925e10.
Merge pull request #198 from opf/feature/fix_select2_xss

Fix XSS in select2 formatter