Make app debug and bottle debug externalised
Set single DEBUG setting and make checks be boolean