Refactor out Aws v3 signature algo.