Addressing PR comments on Agent, misc fixes to concurrency issues
Updated javascript and html based on PR comments
Added interface, sender implementation, and unit tests for RPCs to worker
Renaming some test variables for simplicity