Many fixes...

* caking 		-- fixed max on threshold spin controller
* fitting 		-- fixed residuals and added CAPI functions
* material 		-- added ability to set beam energy from cfg file
* transforms_CAPI	-- fixed input munging (contiguous arrays, etc...)
* xrdutil		-- added functions for grain simulation,
			   angular pixel size determination, and spot pulling
			   with new geometry model
* xrdutil		-- fixed kwargs to ndimage