remove unused defines, initialize nawala object and register session
removed statics, add mixins