Device events

* Implement notification requests
* Add tasks to check for battery low and sync events
I just find that according to RFC 7230, HTTP headers are case insensitive. In case that the client's httplib doesn't take care of this, I think this naming scheme is more "conventional"..