Update ivs app to use new config file convention.

Also factored environment context detection and associated
callpoints.
Merge pull request #332 from glowe/fix-ivs-conf

Update ivs app to use new config file convention.