factored out lib code
oops, gotta return the config
convert lib into a module (for inclusion)
new emailr script