Added docs, reformatted some stuff, cleaned up some code
Merged from Bryan's chanages to pass all the tests.
Merge branch 'POLARIS_XA' of github.com:polarislabs/pgjdbc into POLARIS_XA