fix bug on count the deleted matching Statements

- the count is wrong because of overwriting the $filter variable and wrong accessing of the $result variable
Fix #83. Fix parsing of qnames and add test.
Fix #87. Add checkCacheStructure.

Add checkCacheStructure for exception handling and rebuild the whole
cache structure if a table is missing.
Merge pull request #84 from AKSW/feature/fixParseQnameWithoutLocalPart

Fix #83. Fix parsing of qnames and add test.
Add incomplete test testParseNamespacesFromCoursRoadDataString
Merge pull request #70 from larseidam/develop

fix bug on count the deleted matching Statements
Add NTriples serializer
Fix formats
Set html entities for SPARQL XML output.

Fix AKSW/OntoWiki/issues/226.
Fix test accordingly.
Partially revert 83ba7c2f12fc7f400122bbb30c9c6913a4b390d8 (short open tags)
Merge pull request #88 from AKSW/feature/ntriplesSerializer

Add NTriples serializer
Add new search method 'getSearchPatternWithNode'