Refactor promise/future support to..work, using the right thread's varstack

References #7