Print out message with stack trace in proxy/piwik.php.
Refs #5995, do not access piwik URL for non-main runs when running xhprof since it initializes the config object.
Add missing semicolon.
Add initial unit test for piwikApi angular object, add abort() and abortAll() functionality to piwikApi object.
Add unit test for chaining multiple then functions.
Add another test for multiple aborts called on piwikApi angular object and refactor code changes made to piwik-api.js.
Merge pull request #6048 from piwik/angular_piwik_api_refactor

Refactor piwikApi angularjs object to allow aborting individual requests and all requests. Includes new tests for all piwikApi functionality as well.