Add logfile and outfile as arguments

- use minimist to parse arguments
- add '--log' for the location of the logfile
- add '-o' for the location of the output file
Allow cross-origin resource sharing