Class-based views now work automatically

Small change so that both view functions and CBV are supported automatically. Bumped version to 0.9.2