HaikuDepot: Fixed some inconsistencies in List.h
HaikuImage*: Create missing writable dirs in ~/config

Also reduce code duplication by moving the respective code to
HaikuImageCommon.
dump_mapping_info(): Remove problematic initializer

Fixes gcc 2 build.