Split up handling of updates versus queries; add EREGANSU_SPARQL_DEBUG_QUERIES; fix parsing issues.