jRuby support for postgresql

Only use the java postgresql drivers when the platform is jruby, otherwise use the normal C based one.

All green under ruby-2.0.0-p195 and jruby-1.7.4.