SQLite Compatibility

patch 2 partial fix as of Kipcool's recommendation (not all yet).
- new problems, deleted items are displayed as if not deleted, except
	that a undelete option is given
- undeleting results in an error undelete page, yet is undeleted, except
	that it is not shown in Recent changes

patch 3 added recommendations, yet same problems.

patch 4,5 corrected carriage return \r issues

patch 6 a few cleanups. The delete problem is actually
a MW1.21 problem and will be solved later.

Change-Id: I69b0ca5a75275336d8958bb09cf33188dd2b0f34
Merge "SQLite Compatibility"