[RJA-2372][fix]: Made file attachments serializable
to be possible to send them in remote action result(from agent to backend).
Merge pull request #977 from ddurnev/master

[RJA-2372][fix]: Made file attachments serializable