reimplement update-user-apps.sh
prepend times to log messages
disable and clear active pids of user with no active session

This should fix two issues:
- stop inactive user processes to eat system resources
- xwatch lockups when querying for active window of user having some GUI
applications in frozen cgroup under the freezer subsystem