Fix build error due to recent Log changes.
Do not overwrite log section of config w/ global when running tests.
Fix bug in Date::addPeriod(N, 'month') where max number of days in a month was not respected. So if subtracting one month from July 31, result would be July 1. Now result is June 30th. Note: there appears to be little to no change in speed, tested both in integration tests and the code by itself.
Log exception when API request catches it.
Fixes #6086, in piwikApi angularjs object, make sure we use and add abort() method to new promises returned by angularjs promise methods.
Make sure log messages are trimmed correctly for clean log output.
refs #6089 setting TTL to 150 seconds instead of 10 to not archive on nearly every request. Makes Piwik faster
Merge branch 'master' of github.com:piwik/piwik
xhprof removed their composer.json file, adding it to our composer.json file so we can still use composer to manage xhprof. Added an extra script to make sure the update is clean for git users.