Fragment support

I've added usage with Fragments.
May want to use a later version of gallery for a future release.