Removed torque dependency again.

Less clutter for the single-machine version.
Removed commented out lines.
Disabled heuristic by default.

Also for now using the clever cardinality optimiser for queries with
more than 8 patterns.
Added a simplified Java API.