Remove sparql related code, improve self contact handling

In order to transition to qtcontacts-sqlite.