refactored ZMTP session to allow the secon version of session to be introduced.