Changes to log message priorities
removed commented out code
removed unnecessary #defines from config.h
log SQL statement when error encountered
separated lockfile locations for user and root
refactored lockfile code
runs setuid root to enable listeing on privileged ports.  Privileges dropped as soon as listener set up