PHP < 5.4 can not use $this in anonymous functions.

Should have tested that one earlier (damn).
Merge branch 'develop'
0.2 Beta 2

Fixed PHP 5.3 compatibility.

I also accidentally merged some features earlier.
They actually seem to work quite well, so I do not try to revert these
changes.