add registerCallback method as primary scanner method

this allows JS code to register a global callback that is invoked on
scan. Cordova only allows marshalling raw JavaScript commands, so this
is the easiest way to notify an app that something was scanned