Implementing two way TSL authentication support. Refactored TSL related classes.