ueventd: Handle online events

Based on upstream commit 75b287b771b302c99797d812122b72f83d2f56f9.

Change-Id: If3bae9f1e9299be386fe805ff903eeba2b165ba2