added js/css resources for advanced query editor, copied from the jslib repos (for now we are forking, avoiding use of subtree merge, but that may change at later date).
advanced query editor save/load implementation and fixes