CB-6954: Use the unified cordova_lib.events

After events got shared between cordova and plugman, some log messages were
printed multiple times since handlers were registered twice in the cli:
cordova.on(...)
plugman.on(...)
changing it to
events.on(...)
CB-6943: Fixe cli tets on non-windows.

The previous commit for this bug
f6e73a61683ed2160eaa1da97f6cfacbc6aea0ac
broke the cli jasmine tests for non Windows platforms.

Custom www path gets path.resolved. Paths beginning with C:\ get resolved to
something like this on Os X:
/Users/joe/tst/c:\PrivateWWW

I replaced the specific expectation for the path with jasmine.any(Object).

Note, paths beginning with file:// don't get resolved properly either, so
they still don't work as custom www uri.

Looks like we need to write or find a smarter wrapper for path.resolve that can
take care of file:// and c:\
CB-6954: Use the unified cordova_lib.events in cli spec