Initial source drop from Apache, 1.2.13

Signed-off-by: Mathias Wynne <github@mathiasw.com>