Remove suspend-resume DBus approach

Signed-off-by: Martin Abente Lahaye <tch@sugarlabs.org>
Switch to monitoring approach

Monitor /sys/devices/platform/dcon/sleep in order to track
screen blanking events.

This approach is specially useful because it covers both
cases where (a) the laptop's lid is closed and (b) the
laptop's go idle after a long while of inactivity.

Signed-off-by: Martin Abente Lahaye <tch@sugarlabs.org>
Handle potential desynchronization cases

In the very unlikely case that Sugar switches to another
activity before we can re-activate the current one, then
just let Sugar handle this activity re-activation instead
of activating the wrong activity.

This will work fine because the original deactivated
activity should not accumulate time since the screen
was blanked anyways.

Also, ignore the Journal.

Signed-off-by: Martin Abente Lahaye <tch@sugarlabs.org>
Add packaging .spec file

Signed-off-by: Martin Abente Lahaye <tch@sugarlabs.org>
Release 0.0.1-1

Signed-off-by: Martin Abente Lahaye <tch@sugarlabs.org>
Fix GPL header

Signed-off-by: Martin Abente Lahaye <tch@sugarlabs.org>