- get_community_id: pass current url to closest_ancestor_package if no package_id is given- use list for argument of util_memoize to avoid surprises- don't write HTML tags to error.log
- improve backward compatibility: although permission_p is boolean, the results of often compared with literal "0" and "1", so return an integer as well