Merge macosx-codesign-app-bundle changes from cp-4.1

Don't unintentionally drop a period, and actually simplify.

Handle app bundles with space in name, also sign the mdimporter
properly.

Just like the Python framework, also the Spotlight importer needs to
be signed specially, it seems.

Include the directory names in the "ids" to make them unique. There
are lots of files with the same name, especially in an app bundle that
includes help in multiple languages.

Change-Id: Idd8a19be0b6eba69c7086a7ba706f00521aa6ff6
Why would we need GNOME and KDE scripts on OS X?

Also, the senddoc script seems fairly AIX/Linux/X11-specific.

Change-Id: I5441996bc133dcc7f292803a22e050cc6c1e23fa
No cmdmail component on OS X now

Change-Id: I693e529c4ef2846425db6ec6ffdfdfc0b1d09ffc