Improved Expandvars

This change improves on the configuration object's `_expandvars` function by adding additional sources to pull data from as well as recursive expansion.