chore(Rakefile): generate version.json

Changes 'rake version' to output a version.json file which
contains the structured version info which can be used in other tools.