PHP 5.3 transaction names via closure - fixes #8

PHP 5.3 does not support using $this in closures. This fixes the issue
by moving the logic out of its own method directly into the closure
itself. We lose a bit of abstraction by doing this but it's not overly
complex to start with.