Fix for issue #16

SPARQL queries are now executed on a background thread to keep the
Polaris API responsive.