Allow hero name and class to be used in dialog

Closes #727

When creating dialog, use %N to substitute the player's name, and %C to
substitute the player's class.
Merge pull request #857 from dorkster/dialog_escapes

Allow hero name and class to be used in dialog