Fixed miscalculation for the last post's page when there is exactly the same amount of posts like in the 'discuss.post_per_page'-setting (plus the inital post).
Fixed DisUserNotifications getting cached
Fixed ThreadModifyController not using the checkbox-chunks
This commit changes some (imo) inconsistent behaviour in Discuss and includes some fixes for previous commits.

When editing a post, the subscribe checkbox will now be displayed only to the original author of the post. Also the checkboxes for stick and lock will only be displayed when a user edits an inital post or creates a new thread and has the rights to do so.

- Enable sticking/unsticking a thread while editing it with the replyform

- Enable locking/unlocking a thread while editing it with the replyform

- Allows subscribing/unsubscribing to a thread while editing it with the replyform for the original author

- The subscribe checkbox now will be rendered using the checkbox chunk.

- Newly created threads are now disThreadDiscussions by default (when not changed in the form)

- Edited threads will now be either disThreadDiscussion or disThreadQuestion (default: disThreadDiscussion)
Adds checkbox functionality for the "reply-to-thread"-form

- Add security checks for subscribing/unsubscribing while editing or adding a reply

- DiscussThreadReplyController now renders the checkboxes using the checkbox chunk

- Add checkbox-handling in the ReplyPost Hook-Snippet
- Fix Bug #9427
- Add system setting wether to allow users to delete their own posts or not (default: yes)
Two small modifications

- Modified DiscussPostRemoveController to use the correct canRemove method of the post

- The DiscussPostReportController now renders the authors data to allow extended output if necessary
Various bugfixes regarding reporting a post

- Fix  DiscussPostReportController using the wrong scriptProperties

- Fix  DiscussPostReportController generating an invalid post url and using a wrong placeholder

- Fix wrong placeholder in the report-form chunk
Fix DiscussThreadController using a wrong url for DisThreadQuestions
Merge remote-tracking branch 'eldanilo/develop' into develop