Move JSON format bug fixes to new JSON2 format so existing clients will not fail. Add deprecation note for JSON format and use JSON2 in future proof code (angularjs/log importer).
Fix angularjs tests.
Merge pull request #6066 from piwik/json2_api_format

Move JSON format bug fixes to new JSON2 format so existing clients will not fail. Adds deprecation note for JSON format and uses JSON2 in future proof code (angularjs/log importer).