import "Batch Number" from checkhausen

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

Change-Id: I488f39dfd1be968ce40bfad423a5b5977c703f5d