Added session handling wrapper. Separated sessions and the array authenticator.