We know little to nothing about his childhood, though we know Markus had a wandering eye. He could very easily have been brought over as a slave bacause Markus wanted him close.
We know he isn't fond of the brothers, except Edmund. Even then, he grows to kinda resent him in Chapter 27.
He is isolated enough for no one to notice eccentricities in his body language, though he can put on a show when in company.
This may be exactly why he could have a reliquary made at such a young age and have it go unnoticed. He may have attacked Edmund at this point because he saw too much (or simply through angst) and, unknowingly or not, cost him his eidetic memory. This goes back to the friendship they have in earlier chapters (who else could find out his secrets?), and may also explain Edmund's vanishing act.
He could very well be set up as a Tragic Hero; he resents Elsa for being the preferable one, yet is furious that she is utterly incapable of caring for her people (instead giving them eternal winter).
He is supportive of Anna's attempts to (re)connect either because he's keeping up appearances, or because he needs them back together for a "legitimate" reason (i.e. it's important that Anna feels she approached Elsa through her own volition, not because of a voice in her head told her to). Hey, this Hans turned out to be a pretty good guy: the universe demands a righting of the scales. Imagine if Kristoff had been masterminding the whole affair from the beginning! ;)
So, I woke up at 1:30 AM to write this. Yeah. I'm awkward. I think I dreamt this up alongside someone ("Kenneth...") trying to silence me or something. So, yeah. Feel free to tear this theory apart in the comments below. It's now 1:46 AM.