adds some sample queries and a lot of other good stuff...tidies the infrastructure a little bit
Merge pull request #3 from zrathustra/stats

adds some sample queries and a lot of other good stuff...tidies the infr...