sage-dev: make password timeout relative to last use

also decrease default timeout to 5 minutes, which is the
default for sudo on most platforms (ubuntu is a notable exception)