Add in a minimal reimplementation of xend. This is mostly useful for prototyping things which would require wide-spread changes to xend, if implemented there e.g. domain replay. It is emphatically not useful as a replacement for xend in general use.