Fix evaluation of the next rtc wakeup time

Initialize sleeptime to INT_MAX so that alarm time gets considered
even if there are no iphb client wakeups queued.

[iphb] Fix evaluation of the next rtc wakeup time
Always log the state dsme leaves rtc wakeup on exit
Add diagnostic logging for rtc wakeup handling in verbose mode

Log alarm time stamps from timed in human readable form and
wakeups that happen due to rtc wakeups.
Add android_alarm.h

We need the ioctl constants for /dev/alarm
Make android_alarm.h usable for compiling user space code

Remove ifdef __KERNEL__ block and includes that cause conflicts.
Use /dev/alarm for scheduling rtc wakeups

The driver for /dev/alarm can reprogram the rtc wakeup when the
device suspends and override the wakeups we have programmed via
/dev/rtc. Thus we need to use /dev/alarm interface if the device
node is present in the system.

[iphb] Use /dev/alarm for scheduling rtc wakeups
Merge pull request #26 from spiiroin/alarm_time

Fixes to alarm handling