Remove document controller subtypes
Remove repositories from wiring
Remove require hack which doesn't appear to be required
Fix regression where breadcrumbs weren't linked correctly
Add issued date to Medical Safety Alerts

Adds issued date to medical safety alerts as a required fields and
exports it to the relevant APIS (Rummager, Content API)

Trello ticket:
https://trello.com/c/QFE3nYlc/361-add-issued-date-to-medical-safety-alerts-2
Merge pull request #279 from alphagov/remove-document-controller-subclasses

Remove document controller subclasses
Fix republishing script use of repositories

419440c0 introduced the RepositoryRegistry but did not update the
republishing script's DocumentRepositoryObserverMapper to use it.

This meant that whenever the republishing script was called it would
fail.
Merge pull request #281 from alphagov/feature/add-issued-date-to-medical-safety-alerts

Add issued date to Medical Safety Alerts
Merge pull request #283 from alphagov/fix-republishing-script-redux

Fix republishing script use of repositories
Add script to publish all draft AAIB reports.

This script uses $stdout.flush and $stdout.sync = true liberally in
order to make sure the console output is legible and useful for whoever
in 2nd-line ends up running this script.

It uses the `republication` observers by accessing a new `republish`
method defined in the service repository.
Merge pull request #282 from alphagov/publish-aaib-reports

Add script to publish all draft AAIB reports.
Bump panopticon timeout for publication script

As this script publishes 10000+ documents, do the same here as we had to
do for the import; namely bump the timeout for Panopticon so it doesn't
  timeout.

Further, let's take the opportunity to log a couple of different errors
so we can tell at a glance if an error is to do with API interaction or
another, more non-specific error.
Merge pull request #284 from alphagov/fix-publication-script

Bump panopticon timeout for publication script
Add cucumber tests for basic search functionality

Some of our document formats (AAIB and Drug Safety Updates, for
example) have many documents, and our publishing tool doesn't easily
allow users to find a document to amend other than by paging through the
results.

We should allow users to search by either slug or title using a form on
the list page.
Add 'reform' gem to represent search form

In order to use the rails form helpers, and get niceties such as the
form reflecting the model during the search process, we need the object
storing the form parameters to conform to an ActiveModel style API.

By adding `reform`, we have the ability to do this without backing it
with a persisted model.

In specialist-publisher, we used to do this with app/view_adapters, but
these have become so customised to specialist documents that creating a
new view adapter would be overcomplex for this requirement.
Allow users to search for documents by slug or title

* Display a search form (partial) on the index page for all specialist
  documents

* Modify the ListDocumentsService to accept a search_details argument
  describing parameters the user searches for

* If the user is searching rather than listing, truncate the number of
  results to the kaminari pagination limit. This is because doing
  anything else would require modifying the paginator to paginate the
  sorted collection, which isn't straightforward. The limitation this
  adds (cannot view more than the top 50 results of a search) has been
  cleared with the PO.
Merge pull request #286 from alphagov/add_search_form

Allow searching Specialist Documents by Slug and Title
Add case sensitive help text to search form
Merge pull request #287 from alphagov/add-case-sensitive-help-text

Add case sensitive help text to search form
Fix registrations on AAIB reports

The import script added both registration (an array) and registration
string (as string) to extra fields. Desired behaviour was to just use
string.
Removed registration array, and renamed registration string to
registration.