Fixes NEMO#483: mce wakes up a lot when interacting with touchscreen

Revert "fix delay when processing touchscreen events"

This reverts commit 3238c165bcad9e7677c0e6f7be3bc6ee9ebf4423.

By processing every event, we are more accurate in that we won't lock
when there is a chance that we may do so incorrectly, but we waste a lot
of resources doing so. It makes much more sense from a wholistic POV to
occasionally have an incorrect lock, but to not chomp loads of CPU.
Merge pull request #7 from rburchell/master

Fixes NEMO#483: mce wakes up a lot when interacting with touchscreen
MCE version to 1.12.3
Added C API for managing wakelocks

Simple wrappers for writing to /sys/power/wake_(lock|unlock) files.
Obtain a wakelock while processing input device events.
Obtain a wakelock while the display is not blanked.
Added rules for including wakelock support to mce.

By default wakelock support is still disabled.
Merge branch 'master' into wakelock
Do not use buffered io channel reads for chunked device input

The wakelock avare evdev drivers hold a wakelock only until all
clients have read all events. If buffered reads are used, we might
hit automatic suspend before having chance to obtain user space
wakelock for the duration of actually processing the input.
Do not silently ignore seek errors

Makes issues we might have easier to spot
Do not use glib functions for determining if a channel is seekable

Looks like glib assumes that all regular, characted device and
block device files are seekable. This produces lots of false positives
in case of MCE inputs.
Read and process multiple input chunks in one callback call

Should improve performance since a amaller number of mainloop .. callback
roundtrips are needed.

Also allows us to skip at least some the input we are not interested in
even if seeking the underlying file descriptor is not possible.
Version bumped to 1.12.4
Merge pull request #8 from spiiroin/wakelock

Wakelock
Improve error logging from mce_write_number_string_to_file() helper

There should be changes to mce behavior.

The only purpose of the code changes is to give more informative
error logging in cases where mce_write_number_string_to_file()
gets called without properly configured paths (due to hw and/or
kernel changes), i.e. instead of:

	(file == NULL) && ((fp == NULL) || (*fp == NULL))!
	(file == NULL) && ((fp == NULL) || (*fp == NULL))!
	(file == NULL) && ((fp == NULL) || (*fp == NULL))!

emit something like this:

	touchscreen_disable: output->path not configured
	keypad_disable: output->path not configured
	brightness: output->path not configured
Fix read buffer size for large chunks

Oops, copy paste error slipped through ...
Block mcetool from gconf unless we have $DBUS_SESSION_BUS_ADDRESS

This stops repetitive error messages from gconf library code and
keeps us from trying to autolaunch session bus if $DISPLAY happens
to be set.
Stop mcetool from acquiring dbus service name

Since mcetool utility neither uses nor needs a well known dbus name, my
guess is that it was copy paste error that it existed in the first place.
Added missing newlines to error reporting

Maybe this originally used syslog() style logging where "\n" is not needed?
Move g_type_init() call to main()