Support multiple cpu-keepalive contexts for single process

Clients that do not provide context information still work as long
as they do not have more than one simulatenously active keepalive
period.

For clients that provide the context information, the cpu keepalive
period ends only when all contexts have been stopped.

If client drops from D-Bus, all contexts are released immediately.

[mce] Support multiple cpu-keepalive contexts for single process
Strip diagnostic messages before writing them to stderr

For example dbus error names contain newline characters. By stripping
the message it still takes just one line in the output.
Remove calls to non-existing com.nokia.devicelock D-Bus service

The nokia specific devicelock service is not available in Nemomobile
and thus the failing calls litter journal with error messages.

[mce] Remove calls to non-existing com.nokia.devicelock D-Bus service
Revert "Add watchdog plugin"

This reverts commit 2d2ca4f6e45ea1d3a8467325950b8d12126a1ed3.
Block late suspend on battery empty and thermal shutdown

There is a short delay before shutdown actually starts after battery
empty and thermal shutdown notifications are broadcast. We need to block
late suspend so that the device will not go to sleep during that delay.

[mce] Block late suspend on battery empty and thermal shutdown
Also shutdown from act dead activates power off led pattern

Makes it easier to know when the device is actually powered off
and there is no reason to make act dead behave differently from
the other states.

[mce] Also shutdown from act dead activates power off led pattern
Allow more time for setUpdatesEnabled ipc roundtrip

With severe enough cpu/dbus congestion we might end up in a situation
where lipstick gets setUpdatesEnabled(true) dbus method call, but the
reply message does not get back to mce in time and thus gets discarded.

In the worst cases the following re-tries might get timeout too, which
means that getting mce and lipstick back to sync can take much longer
than it needs to.

Using severely pessimistic timeout value does no harm, but makes it
less likely that valid replies are discarded -> use 2 minutes for now.

[mce] Allow more time for setUpdatesEnabled ipc roundtrip
Add sender name to debug logging from cpu-keepalive method call handlers
Check for NULL strings before strcmp()
Send method reply message even if method call message is malformed

A reply message should always be sent, unless method call message
has no-reply set. And that is handled within cpu_keepalive_reply_bool().
Do not queue display off if power key is pressed during fb wakeup

MCE_DISPLAY_OFF requests must be queued only from fully powered up
display states. Otherwise we create a situation where multiple power
key presses done while the display is off or powering up will bounce
back to display off once initial the off->on transition finishes

[mce] Do not queue display off if power key is pressed during fb wakeup
Merge pull request #115 from spiiroin/no_nokia_devlock

Remove calls to non-existing com.nokia.devicelock D-Bus service
Merge pull request #118 from spiiroin/act_dead_shutdown_led

Also shutdown from act dead activates power off led pattern
Merge pull request #120 from spiiroin/lipstick_ipc_timeout

Allow more time for setUpdatesEnabled ipc roundtrip
Merge pull request #116 from spiiroin/no_device_wd

Remove unneeded device watchdog plugin
Merge pull request #121 from spiiroin/fix_powekey_handler

Do not queue display off if power key is pressed during fb wakeup
Merge pull request #117 from spiiroin/battery_empty_shutdown

Block late suspend on battery empty and thermal shutdown
Merge pull request #114 from spiiroin/cpu_keepalive

Support multiple cpu-keepalive contexts from one process