Add connection handling for WPS databases

Database connection retrieving interface and implementations for JNDI and simple string/props connections.