Add activate/deactivate API and WP CLI commands

Need to add tests yet, but this is a good starting point.

Not ready for merging, but created a PR for review @tlovett1