Implements wp term generate, Fixes #389.
Conflicts resolved.