Making it work with Flask >= 0.10 (Issue #3)