Fix diff function context trimming
Indentation cleanup
Do not add selections as mainlines for headers
Fix for new remote callbacks API
Make sure to keep arrays alive in closures and async
Make discard dialog button position consistent
Add RefActionFetch
Add remote management
Implement remote state tracking
Implement basic fetch
Compute correct y position of row from event
Update refs after remote tip updates