I haven't played GS in like 4 months at least at this point, but I wrote a gem for the vast majority of this stuff (detecting aggressive NPCs vs mundane for instance) that people may find useful.
The github repo is here:
https://github.com/ondreian/Olib
and docs are here:
http://www.rubydoc.info/gems/Olib
Everything except Containers (which is global as well) exists under the Olib global namespace, to prevent unintended naming collisions with Lich definitions.
Hopefully someone finds it useful, and while I am not playing, I will accept PR/issues and keep maintaining it if people find it to be a worthwhile endeavor.
It is a gem, so it can be required and therefore is not on the ;repo