rename local variable "provider" to "provider_name"
replace "@provider" to "provider"
replace "@user_hash" to "user_hash"
replace "@user" to "user"
Merge pull request #367 from kuboon/fix_var_scopes

Fix variable scopes for better capsulization