Inventory over ssl

Changes to solve the problem of Clint and Inventory communication over SSL