Refactoring common and Icehouse specific functionality.  Added Heat.  Updated MySQL configuration.