Add functionality to config provider to get names of all areas.

Simplify nesting of promise objects in config.js.