Yeah yeah yeah, me too. I have a hard time sleeping on the days I do a long ride. And it's not even that I'm sore and the pain is keeping me awake. Actually, it kind of feels like my legs are still spinning. I know I'm tired, but I can't sleep, or else I wake up after a few hours, like around 3am, and wonder when the heck morning's going to come. Weird huh?
Do try out that epsom salt stuff. I tried it and it definitely helped by getting rid of that funny feeling in my legs.