First cut at the General Purpose Extractor GAPP. Still experimental and
has embedded debug/diag code (to be removed for production use)