#560 - Fix server config validation issues.

Fixes:

1. Test Email functionality in server configuration page.
2. Validate LDAP functionality in server configuration page.
3. Reload Command Repo Cache functionality in server configuration page.

All were broken because CSRF token was not being sent, and in Rails 4, even
AJAX requests are checked for CSRF. Wasn't the case with Rails 2.
#000 - Tests were not cleaning up after themselves.

As a part of this test, the USE_COMPRESSED_JAVASCRIPT flag was wrongly set
to true, causing other tests to wrongly use compressed JS and succeed. At
least for Rails 2 codebase, this was wrong and the tests passed just because
of the order in which they ran. This commit makes sure that the test cleans
up after itself.
Merge pull request #614 from arvindsv/fix_wrong_test_which_changed_system_env

Fix wrong test which changed system env
Revert "#560 - Fix server config validation issues."

This reverts commit dfc8668bb1caf8cd897ee673990d4db1833be7b6.
Merge pull request #615 from arvindsv/fix_wrong_test_which_changed_system_env

Revert "#560 - Fix server config validation issues."