This vaguely reminds me of John Resig's TestSwarm project (http://ejohn.org/blog/test-swarm-alpha-open/). Although I'm not sure what the current status of the project is since the links to the site and github project are now dead:
https://github.com/jeresig/testswarm
This seems like it would be an ideal starting point for a project like this.