Item #98 - Add support for postgresql

Support for postgresql (with mysql compatibility).

This PR is a replacement for https://github.com/lifton/rubycas-server/pull/9