ovs_appctl_compgen: Makes the ovs-appctl compgen script generic.

More git commit --amend coming... this commit is not ready yet.