Make REST load ServiceInfo from catalog rather than reading from data dir. Fixes GEOS-6010

Fixed 6010, updated some associated unit tests, and avoided an exception when looking up the config database by JNDI.