Make changes compatible with syncit-server 0.8.1 (so less code here) as well as make using public-bin if in production mode