I take melatonin, flexril, heck even eat when I wake up, so I can fall back asleep, but after 2 hours of sleep, I start
waking up every 30-45m. I can not tell you how long
this lasts, as I have yet to go long enough to find out myself.
As for rls - I've ready from many users that potassium helps. Some swear by eating a banana or two before bed time. Again, I have no experience (yet) with rls, but hopefully this is a cheap way for you to try.