Functional tests scaffold based on WP-CLI

Builds upon https://github.com/wp-cli/wp-cli/pull/963