Add -X support for Mercurial.

The Mercurial backend now supports the -X/--exclude option.

Add unit tests for excluding files from Mercurial diffs.

Testing Done:
Unit tests pass.
Posted review request to development server that excluded files.

Reviewed at https://reviews.reviewboard.org/r/6331/