Add CLI export tool.

If you don't want to wrestle with your php or web server timeouts, you can run the export from the command line instead.