Added whitelist checking/setting functions
Merge pull request #1397 from jpeg729/whitelist

Added whitelist checking/setting functions