add support for index scan direction to query and queryOnce methods

the index scan direction was previously only available for queries on secondary indices (an oversight)
bump AWS SDK version to 1.5.8

AWS SDK 1.5.7 did some refactoring to progress events, which has resulted in some unavoidable deprecation warnings, and there is no choice but to wait on improvement to the SDK