DRY out some duplicate code lines
Merge pull request #59 from SvenBunge/dry2

Move Session- and RequestId-generators to a utility class in the core module.