fixed foundation::Quaternion::rotation() factory method, and added foundation::rotate() free function.
added a unit test.