a largely re-written version of the part of the Openbeacon.org software.