AU: Class to perform delta updates.

A class to perform delta updates and the associated unittests. Also,
change the delta diff generator executable to be able to apply a
delta, which is handy for debugging.

TEST=Attached unit test, hand-tested on real build images
BUG=552

Review URL: http://codereview.chromium.org/1718001
diff --git a/extent_writer.h b/extent_writer.h
index b250bab..ac36364 100644
--- a/extent_writer.h
+++ b/extent_writer.h
@@ -15,10 +15,6 @@
 
 namespace chromeos_update_engine {
 
-// When an extent's start block is kSparseHole, that data written for that
-// extent will be dropped rather than written to the unerlying fd.
-const uint64 kSparseHole = kuint64max;
-
 class ExtentWriter {
  public:
   ExtentWriter() : end_called_(false) {}
@@ -73,7 +69,7 @@
   
   size_t block_size_;
   // Bytes written into next_extent_index_ thus far
-  uint64 extent_bytes_written_;
+  uint64_t extent_bytes_written_;
   std::vector<Extent> extents_;
   // The next call to write should correspond to extents_[next_extent_index_]
   std::vector<Extent>::size_type next_extent_index_;