Added custom requests, masterKey to constructor and allowed custom sessionToken in getCurrentUser