Adapt to extension scheme changes in Flask >= 0.8

Signed-off-by: Sebastian Ramacher <sramacher@debian.org>
Merge pull request #6 from sebastinas/flask-0.8

Adapt to extension scheme changes in Flask >= 0.8