add vend machine config for switching between basic auth and oauth
tweak store initialize, taking credential hash instead