More robust sessionID parsing. 

Now handles sessionID's that are returned with a trailing slash.

This is needed to work with the [IPhoneDriver](https://code.google.com/p/selenium/wiki/IPhoneDriver) (now deprecated).