Moved the GMainLoop instance to the GStreamerBase class.

Every GStreamer component I made had a instance and now that we have
a working base class we might as well use it for common elements.