Implement support for exporting csv files.

Commandline option -e now takes an additional argument to determine in
which format the output will be. Supported formats are csv and html.

Signed-off-by: Niko Rosvall <niko@ideabyte.net>