hotproc : Various cleanups from Nathans review
Fix code formatting
Merge some duplicated code
Add some defines for item numbers
Handle the case where no hotproc config exists