updating userAgent parsing logic.
Merge pull request #35 from apigee/USERGRID-2556

updating userAgent parsing logic.