Make list able to output in hackage format.

Add command line option to 'list' command that lists packages in hackage
format, i.e. format that is usable to provide the distro map on hackage.org.

Signed-off-by: Magnus Therning <magnus@therning.org>