Refactor to allow WP CLI command, add WP CLI command

Hi Konstantin,

Here is this evening's offering to your plugin: a WP CLI command. I needed to abstract the functionality and chose to do this into a singleton class, which I hope is OK.

Let me know any changes, or if this is something you are not interested in for your repo.

Thanks again for the work creating this!

Cheers,

Simon