import final v2013.04 patchset

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