added "--japanese" option to apply a MacEmacsJP patch for IME
Polished the code of the function "patches"
rebased from b9d7a7a and removed a duplicative patch(fukusaka's gist).