Rework book formatter (Fixes #1148)
Remove redundant includes
Book formatting: Handle line endings as per vanilla, fix tall images causing infinite loop, cleanup
Book formatter: Fix last block of text not displaying
Book parser: Fix comparison between signed and unsigned integer expressions
Book formatter: Do not insert last page if it's empty, code cleanup
Hack to prevent newlines at the end of books possibly creating unnecessary pages for mygui versions lower than 3.2.2
Check for text size
Added code to play music on level up and on death
Merge remote-tracking branch 'miroslavr/master'
Merge remote-tracking branch 'ragora/playdeathlevelupmusic'