Adding de-replication code

Includes:
- Serial de-replication code
- Parallel de-replication code
- Command line interface