Adding accelerometer suppport

This adds publishing of accel event and also makes fix to recurrent poll of messages with timer.