add write_gcm plugin

Just an add hoc pick, since  we are sending data every 1 minute, I thought 15 seconds is long enough for some data staying in the buffer, we should send it anyway in this case. You are welcome to suggest any other number or different way of handling this condition.