stack: implement getStack method
stack: implement getStack method

For use in functional tests, to verify contents of the stack at different
points of execution while simulating user input.

Signed-off-by: Nathan Cutler <f9d8c66a4e898e67db786769b5b347b640e1a9a6@suse.com>

smithfarm/mfile-www,smithfarm/mfile-www