[SD-945] Improvements and missing files

Need to merge server code as well. Changes are submitted in https://github.com/superdesk/superdesk-server/pull/347.