Reorganize to match Sequel's style

Other than moving methods around, and making methods private, the only two changes were removing a comment that `in_transaction` needed to be handled in JDBC (which is done), and `STALE_STATEMENT_SQLSTATE` is now frozen