Starting to work on the samples.
Adding some basic helper methods for session handling