Adapt to extension scheme changes in Flask >= 0.8

Similar to pull request #4 in Flask-Silk. This adapts Flask-AutoIndex to the changes in Flask >= 0.8