Make the project self-contained

Also make URL patterns reference views directly.