Refactoring

###REVIEWERS
@flopezag 

###DESCRIPTION
moving settings files to settings and refactoring OrionClient 
fixing logging from django files
adding new parameters to rules definition in doc file 
settings refactoring 
added a unit test for environment manager 

delete final characters