Customize gc settings

This patch moves the garbage collection configuration into attributes. This makes it possible to customize these parameters.