Have /api return the IPython version

closes 6647