Move the plugin query interface to a separate file

Signed-off-by: David Scott <dave.scott@citrix.com>