Removed all my previous attempts and started over.

Able to get the rotation working using Raphael.js. Works well right now,
but need to manually merge back in the rotation handle. Those changes
were moved into myscriptBroke file since there was too much changed
between versions.