Add config and whitelist

This adds a config file and code for three options.