Feature #78 Query Executor - Added support for storageSize, totalIndexSize, aggregate
Refactored js code.