Minor rename of functions
Move replacments to the top.
Add gitignore, tests, run-tests.sh script, git-diff wrapper.
Add few more tests, and additional checks in run-tests.sh

I have few more tests prepared, but they are not optimal,
so wbdiff needs more work. I added tests cases for them but skiped
expected files.