Primitive monitor loop that watches path

This also commits some debugging code that I do not want to lose track
of during this stage of development.