Reorganise code into blocks
Add run_sync wrapper around emerge/rsync
mksquashfs options rework