Use config-store module instead of copied code

This removes the copy-pasted code from /lib/config.js and replaces it with the newly-minted config-store module.