Add basic .editorconfig.
Add .swp files to .gitignore.
Fix style for class doc.
Use Django Form object for login form.