Creates broadcast reciever to capture screen on and off events.