Adds heartbeats test and enhances agent and endpoint shutdowns
Merge pull request #6 from bravelittlescientist/virgo-js-test-suite

Test suite basics, connection port and agent/endpoint shutdown enhancements