Time for a Bible lecture. Listen up.
I'll try to make this concise and brief. If you'll look at John 2:11, it says, "This, the first of his sings, Jesus did at Cana in Galilee and manifested his glory.
"This" referring to the wedding at Cana where Jesus turned water into wine. Basically, one of the reasons that Jesus performs miracles, as explicitly stated here, is to manifest his glory and prove he is the messiah.
There are seven signs in the book of John:
1. Changing water into wine (2:1-11)
2. Healing the official's son (4:46-54)
3. Healing the invalid (5:1-5)
4. Feeding the multitude (6:513)
5. Walking on water (6:16-21)
6. Healing the man born blind (9:1-7)
7. Raisin Lazarus (11:1-44)
The gospels have always been about who this man Jesus Christ is, and John is no exception. Jesus' identity is manifested on a word and deeds ministry, and here is an anecdote that demonstrates Christ's ability to raise from the dead. In 11:25-26, right before the resurrection of Lazarus, Jesus says "I am the resurrection and the life. Whoever believes in me, though he die, yet shall he live and everyone who lives and believes in me shall never die."
The point: Jesus is life; his actions demonstrate that.
Yes Jesus is moves emotionally, but why? Lazarus is a dear friend, and not only that: death is indicative of the effects of sin (Romans 6:23 "For the wages of sin is death, but the free gift of God is eternal life in Jesus Christ our Lord"). Jesus is not only saddened by the death of his friend, which is a completely normal reaction for ANYONE, he is also angry at the rampant effects of sin. It is his mission to defeat sin and death and he demonstrates his power to do so by resurrecting Lazarus from the dead.
So no, Lazarus is not "holy enough" to go to heaven because he's Jesus' friend. Romans 3:10 says, "None is righteous, no, not one". That's the point though. That is why God sent his son Jesus Christ. We find life not in ourselves, but in him.
Source
I hope this helps. I am a biblical studies major in a private Christian university, and I'd be glad to answer more questions. I don't know all the answers, but this is why I'm learning.