change i18n messages to JSON and load from both JS and Python sides

git-svn-id: svn+ssh://organicdesign.co.nz/tools@861 5e2f9ad9-d71a-4c5e-ba50-a8a02cc83e87