Initial commit of Caffeine library code