CB-7124 Wrap the cordova platform string in Platform object

This prevents having to duplicate the check whether the platform string
specifies a version or not.

github: close #61