Refactor ligolw classes
In !82 (merged) I encountered some difficulty fixing a compiler warning in LIGOLwReader.c
Its functions are nested quite deeply and it's not really done in the same style as our other code. I'm unsure if it's code we've written/maintained or pulled from elsewhere. We should consider replacing or refactoring it. (especially after the gstreamer upgrade)