initial import of ancient prototype code

Signed-off-by: Laszlo Hornyak <laszlo.hornyak@gmail.com>