PassThroughCode refactoring and create PassThrough Core and API for enhace reusability

shall we rename logger to log