Step one at making a first cut of  version that works.
Committing so that I can have other look at a problem I am having with promises.
Basically runs - but not competely
Merge pull request #1 from jimsch/master

Initial cut a a JavaScript proof of concept