Refs #3869 constructing json data rather than using a global
added deprecation notice and backward compatibility for json output
rendering exceptions for non-html views
profile now works with json
added json view for group profiles
adds new method for getting an object copy of entity for web services, export, etc
finished first version of toObject() methods
Merge pull request #524 from cash/json_views

Fixes #3869 Construct json data using view system rather than global variable. Also Fixes #5062, #5061