After years of fighting I finally gave up, so I decided to store everything in memory. Not very smooth but actually it allowed to wirte everything under DDD more clearly. Tested from javascrip console and got the POST and GET requests. Time to sleep now.