Create testbed.js

Mainly comments and thoughts at this stage.