Add user inactive case
Pep8
Read user inactive threshold from config
Merge with master
Refactored out inactivity logic to one place, added tests