reorganize primary master and backup master

implemented store image metadata feature
update MasterController to test promote backup master to primary master