Fix broken travis

This patch fixes the travis problems we've had recently that was caused by an upgrade of the jdk from version 1.7.0_21 to 1.7.0_45.

As part of the investigation I reformatted a bunch of oldish Cooja simulation files that were written in an old version of the csc format so this pull request contains that too.