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>
Merge pull request #4 from Thelonedevil/master

Updated for API changes