btw, the wpa_supplicant method seems to be the right way forward. am still investigating the best way to make the system present various wifi access points as choices and then go ahead with the connection after providing the appropriate details.
You can try wicd.