added resourceselector, patterndiscovery, and querytransformation
subpackages.
change id in Measurement from int to long