initial implemntation of a reduction framework for NIRI images

this is WIP - do not merge