Switched crawlLocalFiles.c from noisy printf logging to bblog().
Show indexing status. Code refactoring.

* Previously a collection would be marked as finished with a green hook when it was finished with the crawling phase, but the indexing could still be running. Change to show that the indexing is running when we run the indexing and then mark it as done when everything (crawling and indexing) is completed.

* Consolidate cod for locking file where we redirect the output of stdout and stderr so it get locket at one place, and one place only (in redirect_stdoutput() ).

* Changes where we write the error messages in redirect_stdoutput() if something goes wrong with freope().