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

Also some minor changes to the control flow of database functions.
more colorsquare stuff
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.