Automatic configuration

### REVIEWERS
@flopezag 

###DESCRIPTION
Automatic configuration during installation
Added new error message when database is not created
Fixed Authorization bug
Fixed views.py file, django needs it
Cleaning code
I could see some methods in this class which have no comments. Please, take care on it.