adding kms support and moving to aws sdk 1.9.7