Replaced flaskext with flask.ext where appropriate