Fix finding STS security tokens in config profiles.
Add a unit test for security token in profile.
Fix bad debug log message.
Actually just remove the broken debug.
Merge pull request #2445 from avanash/develop

Support security tokens in configuration file profiles. Fixes #2445.