Tranferred code from our own Hg repo.

This is now the beta release 1.0.
Readme