[feature/api] Added permission check for new topic/reply

Now checks that the user can create topics and replies in a forum.
Todo is to make permission checks for announcements, stickies etc.

PHPBB3-11595