Extract UpdateHeadCommand Move logic related to HEAD update from the action class to a command in order to reuse it when HEAD modification event comes from stream events Change-Id: Id9c9d297bb5e39d944386b9e514b5ac69ec0ea1a