Refactored rd_collect metrics framework.

Single entry point for data collection rd_collect.sh.
Can now run against both libjpeg and mozjpeg.
Added support for x264 and x265.
Make dump_psnrhvs work on videos.

The code was incorrectly normalizing with the by the frame count
 instead of the inverse of the frame count.

r=negge
Switch encoder reconstruction output to one file for all frames.

This makes it easier to run tools like dump_psnr on the output.
Disables intra prediction until we can make it work well
Encode DC using 2D Haar transform
Fixing rd_collect using new reconstructed filename.
Fixing rd_collect to work on video files.

Add a FRAMES variable that counts the number of frames in a y4m by
 parsing the output of dump_psnr.
Remove lossless mode from rd_collect_x265.sh.
Setting -k 256 in rd_collect_daala.sh.
Add scripts to generate A-B comparison images.
Fixing compile error in make debug.
configure: fix help string
Add --enable-tools to configure.

This changes the build to compile without tools support by default,
doing checks for libjpeg only when they are enabled.
Detect OpenMP correctly.
Update ignores.
Adding new metrics infrastructure.
Using up-left and up-right for superblock-level DC
Splitting out the prediction code from od_single_band_{en,de}code()

Conflicts:
	src/encode.c
Making the first band use k=1 instead of k=2 for activity masking with g=1

           RATE (%) DSNR (dB)
    PSNR -0.0579852 0.00331591
 PSNRHVS -0.0934497 0.0101054
    SSIM -0.389598 0.0162521
FASTSSIM -1.21102 0.0412042
Encoding MVs with generic encoder and separate sign

Saves more than 50% of the MV bits on the first frames of parkjoy
Disables 2-D adapt for scalar

           RATE (%) DSNR (dB)
    PSNR -0.864214 0.0607494
 PSNRHVS -1.00248 0.0762132
    SSIM -0.802482 0.0478799
FASTSSIM -0.96165 0.0323483

Conflicts:
	src/encode.c
Removes unused MIDXS table