I think you had to go for 17.dxe4. Your Ng5/d4 idea leads to what I've seen called the "wedge" structure or "classical" structure. This should favor Black because he has full control of d5, chances for a kingside attack (even in the ending) starting with ..h6 and White has no obvious counterplay. Usually you would need to either jam a knight onto e4, try to undermine Black's control of d5 or be able to provoke queenside weaknesses but all of those things look hard to accomplish. As in the game 19.Bb5 Nce7 and 20...c6 repelled the threats.
Here's a good example of the dangers of the wedge structure:
Anyway it's a little scary to think that 18.d4 led to all this but it's probably the main problem.
My opponent was banned for "fair play" violation, although I don't want to care about that - this game was very interesting, since I thought a decent human player was playing black, and I just want to care about that.
What strategic themes are important here? What moments were most critical, and how did I really misplay the position, in your opinion?