Buffer messages as java objects (not encoded)

to be more flexible at the relay (error handling when mobile phone does
not answer or GCM message could not be sent).
Improve statistics output (counter)