fdisk: move expect actions to menu callback

Signed-off-by: Karel Zak <kzak@redhat.com>
fdisk: move remaining actions to menu callbacks

Signed-off-by: Karel Zak <kzak@redhat.com>
fdisk: cleanup write table code

Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk: move sync() and reread PT code from fdisk to libfdisk

Signed-off-by: Karel Zak <kzak@redhat.com>