[CS] Remove niceogiri dependency by bringing in everything we need from it

This is the first step to nuking it entirely