Have /api return the IPython version

return version as a string, to be consistent with other APIs.

closes #6647