Support TLS, dynamic listeners and encrypted storage

Could you add comments to exported functions like this?