anykernel.sh: add basic exit statuses
- add exit codes to trigger the assert in the updater-script if something goes wrong
- add ui_print function to write error message directly back to recovery
- compare size of dumped image and new image and abort if the new image is oversized for the partition