Let the Dsn build itself from the env variables

Add a new constructor to DSN that will allow it to build itself from
the settings in JNDI/Environment variables/System variables.