issue_map should be keyed on integer id, not string id

pull in bug fixes from common
Optimise the subscription check.

remove some legacy checking code from pulls now that legacy data has been purged