fix: witness creation and monitoring

While reading node entries from master use a separate PGresult when inserting into witness.
Witness monitoring supplies a null value for 'last_apply_time'.
keep naming consistent
Merge pull request #23 from wamonite/fix_witness

fix: witness creation and monitoring. 

On copy_configuration() we are using the res variable when is still used on the loop.