Move config to an includes folder

Move config to an includes folder, and update code to use die instead of exit