implemented primary_term_damage api call

now plugins such as aug-bg can make sure certain parts of the
screen stay up to date even when things are scrolled.