Changed all context creation methods (except for state) to use find_or_create_resource