3.8: merge in all cape changes up to bone51

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>