Force focus on error summary after page has loaded
Merge pull request #518 from ministryofjustice/ff_focus

Force focus on error summary after page has loaded
Updated the Ruby version
CSS change

Added markup for the .divider class as per the prototype.
This will need to be looked at by somebody who is more CSS versed.
Added the feature test for the court lookup
Courtfinder-client gem added
Updated the courtfinder-client gem

As the output of the client has been modifed
Added the CourtfinderController

To be used by the fontend for fetching the court information.
Fetch court name based on the property postcode

Only being done for the view, no court address is stored and passed to
the back end for the PDF population.
Updated courtfinder-client gem

The behavior of the gem has been cleaned up and warrants an update
Refactored the CourtfinderController

Using the cleaner interface of the gem instead of manually rescuing when
an exception is raised
Added the Court model

For storing & validating the court address
Courtfinder stub method moved to support

It will be reused by other components so it needs to be in a place where
they can access it.
Added Court form

Enabled toggling of the court address form.
Just a starting point.
Further polish required.
Remove left over debugging comment

Discussed this with Stephen, it was left over from when he developed it
Specs for Court Address fetching and population
Specs for the Court Address fetching, frontend

Some of the tests aren't implemented fully and need to be revisited. I
want to speak to Rob about this.
Fetch and populate Court Address details

CoffeeScript for fetching the nearest court address via the Court Finder
API. The tests for this need to be revisited and some edge cases need to
be considered like:

When you look up a postcode and the result is not found.

The text displayed is still showing the link 'Choose to send this
claim to a different court'. Should that link be omitted completely
and the form for the court address shown fully for manual
population?
Added '#as_json' to Court model

So that JSON can be generated for the PDF form population
Renamed the attribute address to street

So that it can match the other models as they are using 'street' instead
of 'address'