[Cooja] Println cleanup

This should primarily solve #794 but also removes some further occurences of println in COOJA code and performs some further minor cleanups for related files.