Initial refactoring.
Made changes.
Tweaks.
Merge branch 'master' into log

Conflicts:
	core/Log.php
Fixing ErrorHandler stuff.
Rewrote error handling.
Finished converting exception handling.
Thanks for the report. Could you apply this patch and confirm it is working for you?

Fixes #4156 Adding ORDER BY clause when DELETING so that it works with replication
https://dev.mysql.com/doc/refman/5.1/en/replication-features-limit.html
Merge branch 'master' into log
Finished more.
Tweaks.
Another tweak.
Added tests and fixed bugs.
Got tests to pass when running all Core tests.
Merge branch 'log' of https://github.com/piwik/piwik into log

Conflicts:
	plugins/TreemapVisualization
Merge branch 'master' into log
Silence unserialize error so content can be shown in error output in cron archive.php.
Documenting Log.
More documentation.
Last of the documentation.