Redesign tplcache working procedure.

1. tplcache's methods will not return errors, they are now gathered in
tplcache.Err object.
2. modify api of using a customized not found proc.