requested ttl fixes and enchancements

Add default_ttl set per object with constructor, overrides global
Added explicit ttl error messages
tests for ttl including override order (global, local, function)
fixed fetch proto