Add wp-cli command

Add (optional) WP-CLI support for greater compatibility.

@scribu does this look good to you?