IApplicationEnvironment fixes

Removed the old IApplicationEnvironment interfaces from samples.

cc @davidfowl