Export generated parser, improve output

Output will now call toString() if the resulting object
supports it, JSON.stringify() otherwise
Write README
Change initial language in index.html, add comments
Add LICENSE