Fixed accessing wrong config property.
Fixes environment variable names.
Moves dependencies to dependencies.js.
Register auth strategies only when the config is set.