Add some factories

Add some factories for transport, authenticate, and session.

Change-Id: I355b07b2e644358295ba4543cfce3418235ba4ff
Merge "Add some factories"