Move DEBUG assignment above import of impl_settings

This is required to allow this field to be overidden.
Merge pull request #110 from steventlamb/bug/404

Move DEBUG assignment above import of impl_settings