Add test for active transaction before calling _xend(), otherwise we get a segfault
Add test for active transaction before calling _xabort()
Add support for building and running from a jar
Add fat-jar target to buildfile, allowing creation of a jar with all dependencies embedded