Bell & activity monitoring

This PR adds a signal notifying about a bell (^G, testable by, for example, `ping -a`).

It also adds methods for notifying about activity and inactivity in sessions.