Fix for potential NPE while restoring Activity
Fix for URISyntaxException with trailing spaces in the URL
Do a case-insensitive parse, since the callback URL is always returned in lower case
Merge pull request #407 from bhariharan/unstable

Bug fixes