Added and implemented TimberPostsIterator and TimberQueryIterator
Make sure also Timber::get_post works with the iterators
Fix Timber::get_pid (I don't think this one worked before either..)
Remove next() implementation in TimberQueryIterator
Don't create yet another object if given object is already of the right type
Let the unit test use the result of Timber::get_posts as an Iterator instead of as an array
Create TimberPostsCollection object that uses TimberPostsIterator to push the current post as the current global $post
Implemented get_posts on TimberQueryIterator, that either returns the plain TimberPosts array, or the TimberPostsCollection
Split up Timber::query_posts and Timber::get_posts.
Use the passed in PostClass in Timber::handle_post_results
Fix Timber::get_post to use an ArrayObject instead of an Iterator
Restore unit test from 4ba7c09 now that get_posts returns an array
Implement getting posts from slug with hash and post type
Added basic test for TimberQueryIterator

TimberIteratorTest::testTheLoop simply shows how a template tag like 'get_the_title' can now be used in a template file. In the test, replace 'Timber::query_posts' by 'Timber::get_posts' to get an array (like the old behaviour) and see the test fail.
Merge branch 'use-iterators' of github.com:mgmartel/timber into mgmartel-use-iterators

* 'use-iterators' of github.com:mgmartel/timber:
  Added basic test for TimberQueryIterator
  Implement getting posts from slug with hash and post type
  Restore unit test from 4ba7c09 now that get_posts returns an array
  Fix Timber::get_post to use an ArrayObject instead of an Iterator
  Use the passed in PostClass in Timber::handle_post_results
  Split up Timber::query_posts and Timber::get_posts.
  Implemented get_posts on TimberQueryIterator, that either returns the plain TimberPosts array, or the TimberPostsCollection
  Create TimberPostsCollection object that uses TimberPostsIterator to push the current post as the current global $post
  Let the unit test use the result of Timber::get_posts as an Iterator instead of as an array
  Don't create yet another object if given object is already of the right type
  Remove next() implementation in TimberQueryIterator
  Fix Timber::get_pid (I don't think this one worked before either..)
  Make sure also Timber::get_post works with the iterators
  Added and implemented TimberPostsIterator and TimberQueryIterator
Allow to set custom MenuItem class