Several bug fixes.
Merge branch 'master' of https://github.com/onsharp/Cnet.IOS