Add SSL in production
Refactoring and cleaning