Merged Flask-FlatPages v0.5 from upstream