Some improvements. Mostly, added osc_login, which should work automagically, for Macs anyway.