stm: Put gc_collect code in separate file; define _ram_start in .ld.

To partly address Issue #220.