remove conditional definition of RAILS_ROOT again, because it breaks config/directories.rb
use 'xhr :post' instead of 'post' to test xhr-only action
castle_gates' :with_access scope: use :distinct in count() as well
fixed pagination
fixed pagination_helper for ajax requests