First cut at a Hudson-compatible version.  Mostly functional but not yet reliable.