Updating some files to pep8 compliant.

1 - Updating .gitignore.
2 - Adding api.py a permissons.py for django rest framework projects.
3 - Updating templates.