Conditionalize use of nyx-lib 3.0.0 API

nyx-lib 3.0.0 introduces an API break to nyx_system_shutdown and
nyx_system_reboot. Commit f8c248b475c8a868bfb718e3471a21111a1998b7
changed sleepd to use the new API.

This commit conditionalizes that change based on the version of
nyx-lib found during configuration. This allows sleepd to build
successfully against either version 2.0.0 or 3.0.0 RC1 of nyx-lib.

The change is needed to allow bug fixes in sleepd ahead of version
3.0.0 of nyx-lib being released.

Also modify README.md to reflect a dependency on 2.0.0 of nyx-lib,
add a dependency on cmake-modules-webos, and tidy up formatting.

Open-webOS-DCO-1.0-Signed-off-by: Keith Derrick <keith.derrick@palm.com>
Change-Id: I28359bc998bf3cac32637d8cf09d73b40e57aa5a
Fix default configuration file installation location

Open-webOS-DCO-1.0-Signed-off-by: Pekka Ropo <pekka.ropo@palm.com>

Change-Id: I5e7ee638f4efc84224398d2643d6ed160e7a19e2
Stop relying on lunaservice.h to include glib.h

Include it explicitly as it's going to be removed from lunaservice.h .

Open-webOS-DCO-1.0-Signed-off-by: Herb Kuta <herb.kuta@palm.com>
Change-Id: I6de360625ae3ea3e655ab1a605a8557a95830db1
sawmill_logger: don't try to access sysfs entries when not existent

Without this we have the following in the system log:

2012-11-19T08:10:34.479387Z [45097] tuna user.err sleepd: sysfs:SysfsGetDouble: Failed to
open file '/sys/devices/w1 bus master/w1_master_slaves/getrawcoulomb': No such file or
directory
2012-11-19T08:10:34.479875Z [45097] tuna user.err sleepd: sysfs:SysfsGetDouble: Failed to
open file '/sys/devices/w1 bus master/w1_master_slaves/getcoulomb': No such file or
directory

Open-webOS-DCO-1.0-Signed-off-by: Simon Busch <morphis@gravedo.de>