Changes to code to support passing a Palette to the Grabber.

Also some minor changes to the control flow of database functions.
Merge branch 'master' into mediaManagerDev

Conflicts:
	ColorThief/ColorThief/CTGrabberViewController.m

Dirty merge to get everything working.  Need to do some cleanup once things are functioning independently.
Built function to calculate average color values of pixel within a square of an image.
Rearranged and renamed some methods to make the test cases work.
Merge branch 'master' into mediaManagerDev

Conflicts:
	ColorThief/ColorThief/CTGrabberViewController.m
	ColorThief/colorSquare.m

Merging Kevin's work with mine.