Add script to check logs and logic to bring it back and combined into one file

Change-Id: I5260752cf5c84668bc3e3d054b614bd9b515de24
Reviewed-on: http://review.couchbase.org/37202
Reviewed-by: Li Yang <lichenyang2@gmail.com>
Tested-by: buildbot <build@couchbase.com>