Background page handles creation of default resource and patterns if they do not exist.