JSON API: do not use anonymous function

It's not compatible with PHP 5.2
JSON API: remove namespace, change the way the function is called

As per https://github.com/Automattic/jetpack/pull/1322#issuecomment-63960900
Merge pull request #1322 from jeherve/fix/settings-anonymous-function

JSON API: do not use anonymous function