Fixing bug #344, now away states should always be correct, even when people
do complicated things with multiple resources. (There were two bugs and
some duplicated code, so I moved things around a bit.)