Cleanup.
Fixed broken calls to memset.
Fixed broken includes.
Fixed off-by-one error.
Added drop reporting to events test.
Cleaned up drop callback design.