Moved morph functionality into separate functions. There is a lot of cruft in <art> that I will remove after this checkin. Added an inline attribute so the art object can figure out if the svg code is inline or not.