Limit the cert cache size

Cache should use an LRU hash instead of wiping out all the data, however, I write this with a hard limit to keep it simple. I created test but could not get the original tests to work. Might be better to use mock the getting of the cert. 

Also  Errow.new was bad.

Thoughts?