Upgrade Pylons (0.9.7 -> 1.0.1)

Adjust code to the upgrade, as described in
http://docs.pylonsproject.org/projects/pylons-
webframework/en/latest/upgrading.html

Due to an apparent incompatibility between WebOb>=1.1.1 and Paste-
1.7.5.1, or some oddness in the Adhocracy setup code, a workaround in
`i18n/__init__.py` has to be introduced in order to catch an exception.

While at it, some depending libraries and other non-depending libraries
are updated on the fly:
 * WebOb (1.0.8 -> 1.2.3)
 * repoze.who-friendlyform (1.0.4 -> 1.0.8)
 * IPython (0.11 -> 0.13.1)
 * ipdb (0.5 -> 0.7)
 * Routes (1.12.3 -> 1.13)
 * PasteScript (1.7.3 -> 1.7.4.2)
 * MarkupSafe (0.12 -> 0.15)
 * Beaker (1.5.4 -> 1.6.4)

See changed version file of corresponding commit in adhocracy.buildout.

This now also allows to upgrade other dependencies, such as fanstatic.

This upgrade also removes the need for the `paster shell` command patch
in order to get a proper IPython shell as described in #74.
Merge branch 'develop' of ssh://github.com/liqd/adhocracy into develop
Post pylons upgrade fixes

Addendum to db63816f1f012d231a838077a314d55e6ba54114
Don't output fanstatic call result in templates

Previously, some fanstatic calls have been done using the mako
substitution syntax (e.g. `${h.need.autocomplete}`) instead of python
blocks (e.g. `<% h.need.autocomplete %>`). This didn't matter, as
previous versions of mako didn't show `None`. In current mako versions,
this has changed, so this had to be changed now, and is better anyway.
Explicitly pass response to login_user (fixes OpenID login)

Request.response doesn't exist anymore after Pylons/WebOb upgrade.
Added option to allow disabling registration
Fix milestone edit template

Addendum to ad4c95357faeea8c96f28346fbde2f808162c290
Add CSRF token to add selection form (fixes #167)

In retrospect of fixing #123, adding norms to existing proposals stopped
working, as of missing CSRF tokens. This is now fixed.
Explicitly store adhocracy config in InstanceAuthTktCookiePlugin (Fixes #168)

Since the pylons upgrade (db63816f1f012d231a838077a314d55e6ba54114), pylons.config only contains Pylon's internal configuration at this place. Explicitly storing the configuration solves this.
Use dynamic cookie secret
correct cookie secret fallback value
Fix option to allow disabling registration
Fix delegations after base_url change

Addendum to ad4c95357faeea8c96f28346fbde2f808162c290
pep8
simplify freshness calculation
fix time interval constants

* 2 days have 48 hours, not 36
 * precalculate number of seconds
Take negative ratings into account for mixed proposal sorting

Previously, the mixed proposal sorting only took supporting ratings into
account. It now uses the difference of supporting and rejecting ratings.

This is a quick fix, but generally this sorting method should be
reinvestigated (see #170).
Move norms behind milestones in instance navigation
Disallow multiple usernames with only case differences (fixes #171)

This only avoids creation of duplicate users with the same username in
different cases, but doesn't make usernames case insensitive altogether.

This also doesn't change existing installations, which already have such
duplicates.
Fixed details