Pop culture turned ninjas into black-clad assassins who vanished into the shadows. But real ninjas looked nothing like the Hollywood image — and their true role in Japan’s history may surprise you.