Added Production or Sandbox Mode for API calls

Sets the session mode:
 session.mode = "live"
 session.mode = "sandbox"