Added Fragment Support

Added Fragment Support so that activities that use a super class other
than Activity itself are supported.