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
You should provide some comments in this file.