Pluginsv2

Version 2 of the treemachine plugin services. Allows querying the graph and synthetic tree (see TEST.md for examples).

Code does not involve/require any changes to the treemachine DB.