general cleanup and implementation

complete code for component extraction
test existence of epubcheckdir in unittest.sh
add reintegration of extracted component
some code cleanup and refactoring - a lot more to do :-)