feature(eapi6): initial PATCHES support in src_prepare

Mostly copied from mgorny's patch for portage.
feature(eapi6): initial eapply_user implementation