master,metalogger: Add a possibility to run master in shadow mode

Change-Id: I64766df22dc368f51ad4f5f5683ad65a6f7e4c8f