$.frontkit.log() now stringifies messages
Also tests for debug stuff has been added.