Define b:undo_ftplugin and fix b:match_words

Clean up the ftplugin a bit. Use the save_cpo pattern to ensure cpo is
set appropriately, and define a b:undo_ftplugin.

Change the b:match_words definition to match else/else if.