Resize Merge and Function Scope Support

Added the ability handle resize from rebugger and additional scope
changes when handling callbacks.