support for "kpatch replace"

@spartacus06, please don't merge this yet, since this branch also includes the NMI improvements from #159, which hasn't been merged yet.  Just posting this now for early review, since these core module changes will be posted to lkml soon.