It sounds like it
might have been shimmying. However it also sounds like you can do things while riding to avoid this occurrence again. Resting a leg against the top tube will usually stop the shimmying, and it sounds like you might want to grow more comfortable with breaking on the descent. It's better to come to a full stop midway down a hill then to crash.