res_stir_shaken: Add stir_shaken option and general improvements.