Remove unused object
Comment relation button tests
Move relation directive to proper place
Remove helper calls from template
Extract relation type constants
Remove superfluous methods
Fix attachments broken by rebasing