A bunch of changes for better SPARQL support (including some of SPARQL 1.1)

I've made a number of changes for better lexing of complex SPARQL queries, including support for some stuff from SPARQL 1.1.

The changes have been tested against (and motivated by) a number of queries used by my thesis work (SemSOS).

Regards,
Pschorr