add sign_encode_uri flag and get from dynamic variables for key and secret

sign_encode_uri - when module is used after rewrite, uri is quoted