Issue #2304461 by sun: Rebase KernelTestBase onto PHPUnit.

Includes various performance optimizations, since ContainerBuilder::compile()
is very slow: A precompiled Container is shared across test methods.
Each test boots new DrupalKernel that gets the precompiled Container
injected.

Each test registers itself as a Logger, so as to catch unexpected error
log messages, in case functional code fails to use trigger_error().

Various utility methods of the former Simpletest TestBase + KernelTestBase
are made available as traits (so as to keep the original code functional).
Issue #2260121 by sun: [TBD] Re-route former KTB to new KTB.
Issue #2304461 by sun: Fixed DependencySerializationTrait breaks sans container.
Issue #2304461 by sun: [interim] PHPUnit 4.3 process isolation fixes.

- Fix process isolation infinitely blocks on Windows.
  https://github.com/sebastianbergmann/phpunit/pull/1340
- Fix standard IO streams are not defined in process isolation.
  https://github.com/sebastianbergmann/phpunit/pull/1348
- Fix isolated child process leaks into parent process.
  https://github.com/sebastianbergmann/phpunit/issues/1351
Issue #2314123 by sun: Fixed lots of bogus tests.
Issue #2304461 by sun: Updated File API tests.
Issue #2304461 by sun: Updated Database tests.
Issue #2304461 by sun: Updated ModuleHandlerTest.
Issue #2304461 by sun: Fixed bogus error reporting in ViewExecutable.
Issue #2304461 by sun: Updated DrupalKernelTest.
[FIXME] PhpStorageFactory does not support stream wrappers.
[FIXME] drupal_rewrite_settings() does not support stream wrappers.
[FIXME] Config\FileStorage does not support stream wrappers.
Issue #2301245 by sun: Fixed Entity system invokes non-existing theme hooks: "Theme hook $entity_type_id not found.".
Issue #2261477 by neclimdul, sun: Remove broken ScriptTest.
Issue #2304461 by sun: Use setExpectedLogMessage() where necessary.
Issue #2304461 by sun: Fixed EntityUnitTestBase::$entityManager references container.
Fixed SQLite does not interpret '\_' as string literal in LIKE without ESCAPE.
Fixed SQLite does not support CONCAT_WS().
Fixed SQLite: StatementPrefetch is dead code due to logic error.