Fix code architecture.
*Add ssl support--now we can support tunnel ssl encryption
*Add certificate manager(Can not run till now).