Add ability to get the memory and virtual cores given to a

runnable through the weave context.