In summer, accidents near the beach are a constant occurrence. But new technologies using smart devices are helping to prevent disaster in Japan.