Add required require to the wiring file

Also, in development mode, the rails helpers do not correctly link to
the edit_aaib_report_attachment_path -- fsr the routing helpers put the
entire serialised object in as the id rather than the result of the
to_param method. Use an explicit id hack here instead.