add `setup.py jsversion`

for writing the IPython version to `IPython.version` in javascript.

supersedes #4357
added test of IPython.version to js test suite
fix js test print statement on python 3
Merge pull request #4441 from minrk/jsversion

add `setup.py jsversion`