Added additional code to Valerie (with tests) and fixed Knockout components.register()

Valerie: added additional interfaces with accompanying tests.

Knockout: see #2732 - added overloads for register() method on ko.components