Add ability to add to the list of currently allowed hosts

Based on #263, this adds the ability to push to the list of allowed URLs.