moved debugging statements from header to c file

Additionally, declaring the stacks as static.
amendment - to be squashed
Merge pull request #792 from OlegHahm/etx_fixes

rpl: moved debugging statements from header to c file