more refactoring, heading toward --publish
more refactoring, heading toward --publish

created function removeOrphans() and removeUnknownDoctypes()
and the function runbuild() ugly name; which is called from all three of the
main work functions, build(), publish() and script()

tLDP/python-tldp,tLDP/python-tldp,tLDP/python-tldp