I have found the Ratway in Riften. I ventured down three doors and could not find how to join the thieves guild. I went all the way down to the Warrens. This is way past the bar where you find the guy who trains in sneak.
How do I join the Thieves Guild?