rename package detail keys

  CHECK_STATE => UPSTREAM_STATE
  CHECK_COMMENT => UPSTREAM_COMMENT
  CORE_NEWER => undef
Apply PerlTidy
mark errornous packages
introduce cache support