change debug macro to advanced format

let's start a discussion about a more advance debug macro.

this adds a new debug macro with two new features:

1. debug compiler checking support (malformed printf calls)
2. line and file logging support

DO NOT MERGE

[this is part of my integration of the CCN stack]