Update whitelist functions with a general whitelist handler.

Also, remove unused whitelist function.
Merge branch 'master' of github.com:SarahWitty/DotaTrack