I've been dealing with the "you're the best....sorry no raise" for a while, you just have to decide if it's worth staying? What I don't deal with is management trying to replace me, like they are trying to replace you. I suggest looking for something new, yo seemed to have hit a brick wall at your company and it really doesn't matter who's at fault or the reason, it's just time to go.