cli: Abort if asprintf fails

There's really nothing graceful we can do here. If you can't asprintf,
you have bigger problems already.

Signed-off-by: Michael Ikey Doherty <michael.i.doherty@intel.com>
demo: Remove CSD's from Gtk demo

Client Side Decorations are only supported under GNOME3.10 and beyond,
and look entirely abnormal on any other desktop.

Signed-off-by: Michael Ikey Doherty <michael.i.doherty@intel.com>
demo: Prevent double-free in Gtk demo

In keeping with the recent buxton wire API change that ensures all resources
are free'd upon closing a connection, the demo now ensures that we only
cleanup our BuxtonClient if its successfully connected within its lifetime.

Signed-off-by: Michael Ikey Doherty <michael.i.doherty@intel.com>
data: Fix typo in buxton.conf

Signed-off-by: Michael Ikey Doherty <michael.i.doherty@intel.com>
Add key-related memory mgmt

Adds auto free'ing of BuxtonKeys, so client no
longer needs to. Keys are free'd on buxton_close,
so if client-server connection is not properly closed,
a mem leak can remain
libbuxton: Don't use printf after memory allocation failure
build: make man page conditionally

Some type of the environment may not use man pages at all.
For example devices for customer electronics.

Signed-off-by: Alexey Perevalov <a.perevalov@samsung.com>
core: Abort when serializing daemon message fails
core: Skip duplicate NULL list element check
core: Abort on notificaton type corruption
core: Abort on daemon serialization failure
core: Abort when socket information is not found
test: Add start of handle_smack_label_check
test: Add check for terminate_client
core: Cleanup after processing a message successfully
test: Add check for handle_client

Still need to handle client closing the connection and daemon getting
SIGPIPE tests.
test: Make write a loop
configurator: Add required option for get_ini_* functions

Buxton's configuration right now is dealing only with required fields:
Backend, Type, Priority, Description. But for read-only layer it's
better to introduce none mandatory field "Access" with default value.

Signed-off-by: Alexey Perevalov <a.perevalov@samsung.com>
shared: Add read-only layer property

Add the optional access property to buxton's configuration. Use this
property to set if a layer can be updated (read-write) or not (read-only).
db: Fallback to read-only gdbm_open

This patch adds ability to read from write protected db. Without this
change, any get_* routines to a db without write access will fail at
gdbm_open.

Signed-off-by: Alexey Perevalov <a.perevalov@samsung.com>