metrique.py refactor WIP; moving conf templates out along with util funcs.