added clientside logging on promise rejections, added a possibility to override a checkPermissions method on a model