Mongoengine taskstatus

This contains -

1. Schema definition for TaskStatus inherited from mongoengine.Document
2. Added fields.py to define custom fields used in pulp that are not available from mongoengine.
3. Updated save method on TaskStatus to do the validation of fields as well as upserts.
4. Updated task status manager with mongoengine queries
5. Added and updated unit tests in various files as appropriate.
6. Enabled a bunch of unit tests in test_dispatch.py which were not running because of wrong test names.

Since there are a lot of in-place changes, pull request diff looks confusing at some places. It is better to look at the whole file instead of the diff.

**Note**: This PR contains changes strictly related to conversion to mongoengine. Getting rid of TaskStatusManager and moving all it's functionality to the TaskStatus model plus updating a ton of relevant unit tests is being handled in a separate branch remove-taskstatus-manager.
On 12/05/2014 04:33 PM, skarmark wrote:
> There is _get_collection() method provided by mongoengine's Document to
> use pymongo queries. We can use that, but don't we need other
> functionality in PulpCollection?
> https://github.com/pulp/pulp/blob/master/server/pulp/server/db/connection.py#L168.
> Decorated methods and criteria querying.

I'm confident that we don't need or want PulpCollection anymore. Once we
go MongoEngine, we'll never look back ☺