API Sites: Support optional callback arguments

Fixes gh-55