Refactored the layout of the defines file to make it easier to edit on the server.
Updated to throw an error if PRODUCTION_MODE is not defined.
Updated to account for removal of SF_PATH defines.
Updated setup-smarty.sh to be more useful.