Fix WIP
Attempt to use link field and explicit getcolor and getalpha calls for root prim
feeeex
Refactor, fix bugs, optimize, etc.

Credit: Luminous Luminos