Update query to get scan data for the Scans per site chart.

The new query groups by session ID so that one scan session is counted as a scan. Previously the query was just counting the number of files in the files table.
Update new and pending scan query.

The old query was not grouping files by session, as is done in the imaging browser.
Update title of scan chart to match the changed query.
Made the _process much more consise
Added the phpcs for mri_upload module
Ran the phpcs
Ran phpcs on the file
Fixed bug
Ran phpcs
Update scan queries to use count(distinct s.id)

for bin in `cat $1`
do
  echo "Making tables for BIN $bin"
    #time ./pangen sha1 $bin 4 500 2000000 $bin
    time ./pangen sha1 $bin 4 400 5000000 $bin
    #>> "$1.log.txt"
    filename="sha1_"4"_500x2000000_$bin.rt"
    #./rtsort $filename
done
Merge pull request #750 from taracampbell/dashboard_scan_queries

Dashboard scan queries
Merge pull request #791 from mohadesz/mri_upload_improvement

Mri upload improvements
Remove non-required PEAR libraries from install script
Don't install PEAR libraries in Travis to speed things up
Get PHPCS 2.0 instead of 1.5
Remove pear upgrade-all that was waiting for user input in Travis
Merge pull request #755 from driusan/Install-RemoveUnusedPEARLibraries

Remove unused PEAR libraries
Updated BrainBrowser code to version 2.1.1
Added BB_2.1.0 code
Updated brainbrowser.loris.js code to match BB_2.1.0