RefLog: append and remove entries