enhancing toJSON and toObject to pump out cached relations, optionally
Merge pull request #374 from mshick/tojson

enhancing toJSON and toObject to pump out cached relations, optionally