renamed node_hash_dom.py to xdiff.py
renamed xdiff.py to xdiff_core.py
added basic optparse.
refactored code.
small testcases are working.