Speed fix and bug fix

The llGetAttached() function was called three times for three different
tests; now called only once. Also had potential bug whereby code
would try to stop all animations and start a new one - and would
continually stop and and start new animation unless ALL animations
were stopped to begin with.
New animation routines from Silky

Trying to fix problems with animation elucidated in issue #29.