ecmascript: Major refactoring

Get rid of naked pointers in ecmascript code but instead use our
own native obj wraper that also deals with object finalization

Upgrade duktape

Add common hook system

Add CommonJS Module support and use to to implement Showtimes interfaces
atomic: Make atomic_set() return void