Added quat_rotate

Added the quat_rotate function for rotating quaternions about an arbitrary axis.