build-aux: Helpers to define/derive classes, roughly implementing WinJS API.