MUMUP-1297 : fix promise over caching issue
Merge pull request #44 from UW-Madison-DoIT/move_promises_back_to_functions

MUMUP-1297 : fix promise over-caching issue.