PUB-739 Fix computation of espc for frame split.

The espc was computed in wrong way if splits cross chunk boundary.

Added several tests to verify espc computation.
PUB-739 NFoldFrameExtractor: Added input validation and ad-hoc HTML output generator.