Add enough BUILD files to make it possible to `bazel build packages/core/test` Also re-format BUILD.bazel files with Buildifier. Add a CI lint check that they stay formatted. PR Close #20768
PR Close #18733
See design: https://goo.gl/rAeYWx PR Close #18733
PR Close #18289