Create a session

Creates a session with the API using username and password credentials.