collection, custom_id, object_id and raw_type types added to basic-mapping.rst

The basic mapping type in basic-mapping.rst did not seem to be up
to date with the MongoDB Types defined in Doctrine/ODM/MongoDB
(https://github.com/mapado/mongodb-odm/tree/master/lib/Doctrine/ODM/MongoDB/Types).

The following types were added:
 * ``collection``
 * ``custom_id``
 * ``object_id``
 * ``raw_type``

Also, a quick note was added on which MongoDB type the ``collection``
type is mapped to.

Signed-off-by: Balthazar Rouberol <balthazar.rouberol@mapado.com>
"indexed" → "numerically" indexed, in basic-mapping.rst

Correction asked by @jmlkola
Signed-off-by: Balthazar Rouberol <balthazar.rouberol@mapado.com>
Fix wrong syntax on addEventListener
Track current field in ODM's query builder

The $currentField property is only used by the ODM Builder class, so there is no need to rely on the parent class to track field() calls.
Only prepare first part of raw fields in queries (fixes #628)
Docs: Remove use of setDefaultAnnotationNamespace(), add "use" on documents.

- setDefaultAnnotationNamespace() was removed in Doctrine 2.2.
- remove reference to it in the introduction document.
- add namespace-aliased annotations on document examples.
Also updated getting-started.rst.
Fixes CLI using $helpers as a hash with cli-config defining it as an array.

- Define it as the expected array('dm' => helper) hash.
- This caused "[InvalidArgumentException] The helper "dm" is not defined."
Accept boolean values for UnitOfWork hints from Cursor
Rename CursorHydrationTest to CursorTest and test hydrations
Refactor Cursor to proxy all BaseCursor methods and maintain no state

This refactor ensures that the ODM Cursor never changes state, and makes it possible to later remove extension of the BaseCursor, implement Iterator, and only compose the BaseCursor. All methods that change the cursor state proxy to the BaseCursor, and we need not override methods that simply call the underlying MongoCursor, since both the ODM Cursor and BaseCursor maintain a reference to the same MongoCursor instance.

Additionally, by removing state from the ODM Cursor, we fix an issue with recreate() being unreliable.

This commit also adds a test for preserving sort order after Cursor::recreate(), which was contributed by @levofski in #635.
Fix proxied call in Cursor::timeout()

This fixes a typo @sergponomaryov caught in 69a5bdae2b049ddd14942de11d5822f71687b18e
Remove $Id$ from file license headers
Use "public static" for consistency
Use strict equality check in AnnotationDriver factory method
Clean up sandbox example documents

Don't use MD5 binary BSON type for storing MD5 strings, since they aren't raw bytes. Also, use ArrayCollection in lieu of arrays for default values of Reference/EmbedMany fields.
Use canonical name for DocumentManagerHelper in command classes

Also add docblocks to DocumentManagerHelper.
Clean up sandbox scripts

The only functional changes are relying on Composer to autoload example document classes and simplying the HelperSet configuration.
Incorrect cardinality on the Complex References "admin comments" example.

- Cardinality is ReferenceMany, not ReferenceOne.
- small wording changes for clarity.
test for issue #561