Misc. fixes.
Add partitionlist.cpp from mainline and adjust relevant functions and ui.xml.