Initial commit of the code pulled out of the evererst master branch.