Introduces Textpattern_Debug_Memory.

Updates the memory debugging functionality to a
class.

git-svn-id: http://textpattern.googlecode.com/svn/development/4.x@5618 2fea6a4d-a838-0410-917b-93a53c48e9d2