code clean up
revert renaming of Reboot System Now menu
Fix memory overflow potential issue

Allocating memory to the MFMatrix struct without allocating its pointer member could end up with memory overflow
Remove all useless memory allocation and simplify code
don't malloc where it is not needed

optimize code
don't show mount usb storage menu when it is not available

adapted from https://github.com/CyanogenMod/android_bootable_recovery/commit/2ee8640a8ce835199030e87310ada0b5cc68dfe5

We do not check volume labels to exclude as these are prone to issues and device specific
code formatting: keep cast of malloc return as we're moving to C++ later
Code readability
move partition sdcard to wipe and format menu
add function to free only array contents
text formatting
do not double confirm formatting /data/media during ext4 <-> f2fs conversion
clean up code and headers

- we move all recovery system related functions to advanced_functions.c and extendedcommands.c handles recovery menus and related functions
- move all settings functions to recovery_settings.c
- clean up headers and add needed dependencies inside them
loki: fix compiler warnings
add more libraries to clean up on compiling
6.52.6
fix crash by calling ui_print or LOGE on early recovery init
6.52.7
do not confuse with LOGE when reading logs
6.52.8
fix regression bug in Advanced menu