Ensure joint.layout.DirectedGraph.js is precompiled

Otherwise causes errors
Merge pull request #912 from alphagov/precompile-joint-directedgraph-plugin

Ensure joint.layout.DirectedGraph.js is precompiled
Add button to toggle layout direction

Some graphs will work better top-to-bottom and some will work better
left-to-right, it's hard to tell in advance, so provide the user with a
button to toggle.
Remove all trailing whitespace from .rb files
Merge pull request #914 from alphagov/fix-whitespace

Remove all trailing whitespace from .rb files
Sierra Leone, Singapore, South Africa waiting time update
Merge pull request #915 from alphagov/overseas_passports_bugs

Smartanswers: overseas passports - Sierra Leone, Singapore, South Africa waiting time update
Version 2 add
Logic update
Q1 remove, old Q3 now Q1, old Q4 now Q3, Outcome 2 remove, tests update
Phraselist fix
Content update
Add general purpose support for predicate union (or)

aliased to `|`.
Update overseas-passports to use next_node_if

also refactored to use predicates which generate helpful labels
Convert maternity-paternity-calculator.rb to next_node_if
Convert register-a-birth to #next_node_if
Refactor register-a-death to use next_node_if
Updating two table headings in student finance form finder
Merge pull request #917 from alphagov/lost_or_stolen_passport_flow_update

Smartanswers :Lost or stolen passport - flow update
Merge pull request #913 from alphagov/layout-direction-toggle

Add button to toggle layout direction
Flow and content update