API methods for story attachments
Some refactors