Add a method for counting the number of tuples a query returns.

Sparql in particular doesn't have a built-in counting construct; therefore,
a helper method is desirable to facilitate paging and the like.
Fix the test I broke.

... Too much Simpletest previously. :P
Fix the new test...

... Yep, definitely too much Simpletest.
Merge pull request #64 from adam-vessey/1.x-query-count-method

Add a method for counting the number of tuples a query returns.
Populate the data-stream history before attempting to iterate over it.
Datastream versions parent was set to the latest version of the datastream rather than the object it belongs to, this cause problems with calling parent functions such as getDatastreamContent() which were expecting the parent member to be an object.
Merge pull request #65 from nigelgbanks/1.x-use-datstream-in-foreach-loop

Allow's users to use a datastream in a foreach loop without first calling count, etc.
Make tuque composerable
Merge branch '1.x' of github.com:jonathangreen/tuque into 1.x