common: introduce new module

This module contains generic functions used in more than one place (like
loading environment variables from a file).
all: use common.load_envs instead of handy coded methods