Added promise and object id generation functions
Changed the scope to only store strings->uint64 so that the runtime can keep track of the 'heap'