What does 厉害 mean, and in what context does it mean what? This has to be one of the more ambiguous words I have struggled with.

厉害 can be:


very well performed = 玩得很厉害;
harsh = 骂得很厉害;
severe = 生病得很厉害;
probably a bunch of other stuff...


Can anyone give a comprehensive summary of the meanings and related contexts?
It is somewhat similar in usage to the word great in English, with the following meanings I can recall:
Impressive or skilled:

他的功夫非常厉害。= He is very skilled in martial arts.
太厉害了，他是怎么做到的？ = Very impressive, how did he manage to achieve that?

formidable:

厉害的角色 = A formidable figure (not one to be messed around with)
厉害的手段 = formidable tactics (in a sporting game, or as part of political intrigue)

severe:

某某股跌得太厉害了 = Stock X has taken a severe fall (in value)

However, 厉害 is not usually the phrase/word of choice to describe a performance (of the arts).