libraries/singularity: moved event chains into server

1. keep the class file as clean as possible /shrug
2. comments on the pullChain. Because that thing is ugly.