Allow for empty credentials

Also replaced the options hash with the configuration object.