implemented function mockups for sessions

break point starts at function entry, then the mockup function
runs, then the return value of the mockup function is used as the
return value for the mocked up function in the
the native calling convention's return procedure.