Code clean up

Clean up spaces (sorry)
Clean up imports
Moved authentication backend in its own file.
Moved all widgets in widgets.py