DRILL-1599: Drill FileSystemPlugin need getOptimizerRules() method to get optimizer rules from format plugin
DRILL-1333: Flatten operator for allowing more complex queryies against repeated data.
DRILL-1600: Enable Java assertion in unit tests
DRILL-1339: Use EStore to track running query status.

Move common code to ZkAbstractStore.

Get full profile from foreman directly.

code cleanup.

code change based on review comments.

ZK store check node exists before delete. Add error message in case of error.
Use a different profile for running queries, so that running query would have different ZK node from completed queries.
More log.  Do not delete query state in EStore. In stead, modify the state in EStore.