add support for dynamodb local with more flexible connection options

@jkakar mark fine is gone, so I'm not sure who wants to +1 this for merge. This is needed to enable dynamodb local support. There were no tests so I added some to cover my changes.