Have ca-store-generator.js accept output filename as param

Accepts output file as command line parameter, primarily to fix #2.