main: Add command line option '-l' to list all available factories

Change-Id: I682f131939172e5a8104008e0bcc9a2f2901b20d