Updated for API changes

Fixed API breakages, configuration and commands, and fixed and
registered listener.
Signed-off-by: Justin Wiblin <the_lone_devil@justin-wiblin.tk>