An Analysis of Variable Objects in the Globular Cluster M4 Using Observations from the NASA K2 Mission