Merge pull request #44 from pstoellberger/MONDRIAN-1354

Fix MONDRIAN-1354, "Percentile Function negative results" and MONDRIAN-1045, "When I use the Percentile function it cracks when there's only 1 register".
Fix up Paul's code.
Fix up Paul's code.
Implements getSchemaId() in XmlaExtra.
Implements getSchemaId() in XmlaExtra.
Fixes a small class mistake.
Fix for MONDRIAN-1316. A regression was introduced which caused an IllegalStateException to be thrown if the catalog was ommitted from the properties but was part of the restrictions list.
Merge of fix for MONDRIAN-1085, Mondrian does not recognize [dimension].[hierarchy] in <AggName> element for defining agg tables, even if SsasCompatibleNaming=true
Merge remote-tracking branch 'origin/master'
Add TestContext.withOlap4j(). Will allow us to start using olap4j for executing our own tests.
Fix checkFile errors.