Moved post edit/reply code to separate modules.
Used router data instead of getting button properties on topic page.