adds a few cleanups and extroot/ubi support Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 43717