Added Api object creation.  Added multi-authentication with session and basic auth.