adding reactive feature enhancement

Made Dynamic into a structure that contains origin map and
OriginEventMap due to which the origin function used by each inner
dynamic changes whenever an event is detected.  Lib file also contains
an example using Blank Canvas of two boxes moving and hitting each other
and moving apart.