NR-57 : Basic REST server components for handling gateway

Fix for media upload
Merge branch '56-design-and-implement-the-security-plugin-API' of dev.sourcefabric.org:superdesk into 56-design-and-implement-the-security-plugin-API