[ticket/12171] Send correct status 403 when forbidden and 404 when not found

PHPBB3-12171
[ticket/12171] Add functionality to upload attachments to submit_post() method

PHPBB3-12171
[ticket/12171] Add functional tests for downloading attachments

PHPBB3-12171