G-d said to Moses: You want to know My name? I am called by My deeds. I might be called
E-l Sha-dai, or
Tzevakot, or
Elokim, or
HaVaYaH. When I judge My creatures, I am called
Elokim. When I wage war on the wicked, I am called
Tzevakot. When I tolerate the sins of man, I am called
E-l Sha-dai. When I have compassion on My world, I am called
Ha-Va-Ya-H..."
(Midrash Rabbah)
The "I Am" in Torah has a different focus than commonly used here. It directly refers to the state of exile and the children of Israel being subjugated in Egypt.
Honza, I found an article for you that should help clear it up:
Article on I am/ I shall be