Update gems for Rails 3.1.12.
Run Rails update for 3.1.12.
Add missing JS runtime
Rename Clause#exists? to #currently_exists? to avoid conflict with #exists? defined by ActiveRecord.
(cherry picked from commit bec982dae92eb275034f12841f8818a1efd1ce3b)
Fix LoadError when selenium-webdriver requires rubyzip.
Fix test stubbing broken by changes to ActiveRecord.
Upgrade selenium-webdriver.
Set up asset pipeline.
Upgrade cucumber-rails from 1.3 series to 1.4 series.
Add missing tld_length parameter on session cookie.
Fix that :host parameter to url_for no longer accepts the port part of the URL in Rails 3.1.

(cherry picked from commit 7ec5fe68daff5c53e65e2de73b504adeaa47a6a6)

Conflicts:
	app/controllers/application_controller.rb
	app/controllers/companies_controller.rb
	app/controllers/organisations_controller.rb
Fix ApplicationController not finding PDF CSS file.
Remove Ruby 1.8 support.
Remove outdated Debian instructions.
Merge branch 'v1.x-rails3.1' into v1.x
Upgrade from rails 3.1.12 to 3.2.16.
Add missing csv require.
OneClickController: Don't try to mass-assign protected attributes of Member.
Pass proposal directly to Member#cast_vote, and cope with mass-assignment protection.
Allow AddMemberProposal special access to assign member_class_id.