import "Batch Number" from checkhausen

Split out some useful install bootstrap code for doing Civi stuff.

Change-Id: I488f39dfd1be968ce40bfad423a5b5977c703f5d
submodule update: civicrm

Change-Id: I4965ceb238cfa24bdfb17dcc9ee74f45e7444db7
Prevent some PHP warnings

Change-Id: Ifbdf1ee9d74ea102503081be9fe088c1d374062d