Started to add support for third party apps.

Third part ORM apps such as django-netfields extend the ORM in some way that doesn't play well with cacheops.  This fix works with django-netfields since it just extends WhereNode.  Testing is needed.