Fixes SC.Cursor's determination of its internal stylesheet object.  Previously, it would just take the last stylesheet, but any style elements in the body would match this.  Instead we find the stylesheet whose node matches the element we insert for the cursor object.

Includes unit test.