Feature/more logging

I have added the following : 

Moved the check on namespace from a loop in the oplog manager (which slows processes with namespace restrictions down tremendously) to be part of the query when the oplog cursor is fetched.  There is modification in the oplog cursor statement to include logic for this namespace limiting.

I have added a lot of logging functions and a -v flag to turn on the debug logging

I have also added a flag to output all debugging to a log file rather than only having the options for stderr and syslog