Add support for the PublicAPI
Fix unit tests to work against PublicAPI correctly
Fix rendition code to retrieve the given rendition name and not just the first one returned by the server
Tidy & fix logic around PublicAPI version support when creating a session
Merge pull request #252 from mikeh/master

PublicAPI support