Add reactivate-helper to query logind

- Add a "reactivate-helper" script, and use it in the session
  teardown to determine whether or not we should reactivate.
Release 2.0.47

Release 2.0.47, containing the fixes for Trac: #1497, #1499
and #1500