Add gif auto play and auto pause

Autoplays gifs and auto pause gif/youtube vids. Adapted from the
previous code for the listview in MainPage.  Much simpler to implement
with FlipView.