migrating to node.js/narwhal-like modules system

To allow to reuse code from mentioned libraries

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jollamobile.com>
using node.js/narwhal assert

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jollamobile.com>
first unit tests

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jollamobile.com>