initial commit from xe (subset of hg repo; cut out the old files that I think are not used, but have not tested yet so might need to add some of them back in)