Json Output pre-processed (addon to PR #244)

This is an addon to PR #244 and actually includes all changes from that PR.
This adds an modified Json Generator which creates a json file like the php cache from browscap-php.