Reduce memory footprint of LuCI firmware upgrades
Without these fixes firmware upgrades in LuCI have a memory footprint of about three times the image size since the entire file is buffered twice, once in nginx and once in uwsgi (with the fixes the memory footprint will be one time the image size + some minor overhead). This makes the feature unusable on some of our more constrained devices.