Add SSL in production.
Refactoring and new more integration tets.