Implement TemplateMaps.instance()

Includes unit test
Extrapolate a setDBConn function out of req2params