General cleanup/fixes

* Fix unittests
	* logging table is not available, so make sure it isn't called
	* don't query cluster for data; unittests assume local $this->db
* Fix data merge script
	* add archive action (although previously non-existant)
	* i18n log_title
* Fix cache purge script
	* incorrect cache key name was used; use dedicated method instead
* Cleanup flagger
	* route all log calls to new ->log() function (instead of calling other class directly, multiple times)

Change-Id: I6254fbcc8a1579d797974a934da6b787df949400
Merge "General cleanup/fixes"