"test-submit type" command. This adds a new subcommand "type" to the "test-submit" command which is used to test Prolog based submit type for a change. Since "rule" and "type" subcommands have identical options and arguments most of the implementation was moved to a common base class. Change-Id: I59f87f9ae7dd679eb367e7664d7d9f0a13749c20