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.