Cross group transaction support

Adds XG transaction support for Python 2.5 and Python 2.7.

Still in progress - don't merge at this time. Comments welcome!