Load scripts/functions as promisifiable objects
Created by: dmfay
We're starting to use ES6 async generators to cut our callback pyramids down to size, which means we need to promisify everything. The queryables proved simple enough, but we had to do some seriously kludgey stuff to functions and scripts since those don't have prototypes we can alter.