Production env

Looks like a lot of changes, but is more copy-and-paste than anything else.  Basically, broke code out into managebly-sized functions and added a function to create the production environment.
@adamrp I think is because the EMP tables that we have were processed with
that version of gg and until we reprocess we will need to keep this one.

@wasade cause we needed that file in that repo?