Adds dirty map management to the receiver side

Fixes #5.