Updated for API changes

Fixed API breakages, configuration and commands, and fixed and
registered listener.

All the formating errors should be fixed now
Signed-off-by Justin Wiblin <The_lone_devil@justin-wiblin.tk>