Fix/wp textile rendering

Addresses the following issues in the work package details pane when rendering textile:
* styling -> now using wiki css classes
* attachments -> correctly included because an attached to object is provided
* ###NUMBER rendering -> providing an object satisfies safety condition

This should fix most of what Robin is mentioning in https://www.openproject.org/work_packages/13560