Clamp display duration to a maximum of 5 seconds.

If an exceptionally long display string were used, the HUD could
remain onscreen for quite a long time otherwise.
Merge pull request #168 from jparise/max-display-duration

Clamp display duration to a maximum of 5 seconds.