index_type_fix

Related to TISTUD-6578
Now that I'm setting valid platforms/deploy targets/user agents in our alloy view XML CA proposals, I noticed a bug in our handling of user agents from JSCA.
This attempts to clean up some of those issues, so we actually use the data we're getting.

- fix to loop through natures to get the active user agents (so if first nature doesn't give us a result we go through to next nature)
- Fix to properly handle user agent listing from JSCA JSON, with unit test