remove or escape newlines so variables have correct values
make this work for Private Chef and allow url parameters
treat this as a script in a file rather than something to be sourced
Merge pull request #95 from opscode/jhs/fix-improve-auth-bash-script

fix and improve auth bash script