parser: do not break element tree traversal early (after link has been detected). Reset parser if empty page has been provided. Added debug (commented)
similarity: more debug, cleanups. use new swap() document parser API