Update .gitignore for OCaml.
Update OCaml code with pattern guards.

Now the missing piece for recognizing urls is
regexp support.