Add timecache module
Fix timeout to be exact. Add comments and more test cases.
Fixing issues raised by golint
gofmt
Add timecache to pubtkt code