Revert "Revert "Cache discovered callback addresses""

This reverts commit fa32e6d833e86f34c8804a19aa5fbd14454d99fd.

Conflicts:
	src/internal/callback.c
Privatize sampgdk_callback struct