Server: Move goodie rendering to perl

This fixes some bugs/inconsistencies with goodie rendering. Pieces of it should probably be made more like the internal code, but without any idea what that looks like, this should be closer in functionality.