[Delivers #72292294] Display stage name in stage completion text

 ...instead of game name for custom scripts.

This commit also contains a refactor moving some of the 'puzzle solved' logic from a rather long function in application_controller into script_level. (It could use further cleanup, this was a first step)