Fixing AGAL source strings based on tinted value plus handling context loss

Bug fix to ensure we have the right shader source. Also now just using
the dictionary of programs from the main Starling core object, which
means we cope with Stage3D context loss, should only be a slight
degradation in performance