Move the core inquisitor code into its own file
Cut down on the use of global variables
Move disk functionality to the only file that uses it
Support building without shared disk support