Refactoring epicprogress and velocitytrend

moving to ./lib — creating v1* files.  This will allow different jobs
to reference the same lib/functions.