Refactored TimeKeeper classes into collections-api. Added some constructor
validation to the sampler classes.