Yes – I KNEW there was a fairytale thread – though it's rather ancient by now.
Here are my recent thoughts on this topic:
Our "story teller" Moriarty (motto: "make believe", see Kitty's flat) admits that he loves fairytales: "I read it in the paper, so it must be true. (somehow this inverse conclusion reminds me of: "Look, I'm in shock – I've got a blanket!") I love newspapers … fairy tales … and pretty grim/Grimm ones too."
He sees himself playing the villain role: "Every fairytale needs a good old-fashioned villain", and states that he definitely isn't "on the side of the angels" which is "boring" and "ordinary" (properties he attributes to Sherlock).
But – "stayin' alive" is also boring for him: "It's just …staying!"
So, Moriarty, the fairy tale lover, definitely has a problem, maybe a "final" problem:
What about "…happily ever after"?
I don't remember a single fairy tale where the villain is rewarded with that.
So, Moriarty doesn't have to worry about surviving. 
It's up to Sherlock to complete his story. But no – not by his suicide! After all, those being "on the side of the angels"
don't do that.(Even the prince in Rapunzel didn't commit suicide though it looked like it!)
As Moriarty had introduced the fairy tale topic at an early stage of Reichenbach (see the tea party at 221B) Sherlock had enough time to make preparations. ("Glad you chose a tall building…nice way to do it.")
To me, Sherlock's appearance on the cemetery stands for the very last fairytale sentence:
"…and they lived happily ever after."
Note: In the original German Grimm fairytales the last sentence would be:
"...und wenn sie nicht gestorben sind, dann leben sie noch heute."
It's like "…and if they hadn't died by now they're still alive today."
In this case...that hits the nail, doesn't it? 
---------------------------------------------------------------------------------------------------------------------------------------------
John: "Have you spoken to Mycroft, Molly, uh, anyone?"
Mrs Hudson: "They don’t matter. You do."I BELIEVE IN SERIES 5!