LDEV-4180: Make DB patches produce up-to-date structure during build instead of applying multiple patches. Get rid of unnecessary tables and keys. Modify boolean columns to tinyint(1) Simplify patches where possible.
Switched to shared transaction manager and JNDI toolDataSource. Added junit tests to the ant script, and tried to get as many of the tests working as I could.