Added site extensions log manager to enable Azure specific logging.
Refactor some duplicated code
CR related fixes