Properly calculate level cost for books. Fixes BUKKIT-3410
Use platform specific line separator for file output; Adds BUKKIT-2370

This only modifies the output used to write the log to the file system.