Added authenticateSession() helper

To reduce the boilerplate code needed in scripts using the class.
Added createdId() to ease working with transitions

And defaulted put() data to an empty array, since transitions send no
data.