DEV: Validate models returned from ContentsManager methods.

Adds a validation layer to models returned by `ContentsManager` instances.

ping @minrk 
Ah, I guess mimetype is only set when type is 'file'. I think I'd prefer to keep that behaviour and make the docs match.