Move Rspec dependency where appropriate + simplify a path.
Add a "dump" button for exporting agents.

The implementation is simple (no asynchronous tasks) but seems to work.
Merge remote-tracking branch 'origin/topic/bf_add_export_button' into develop

* origin/topic/bf_add_export_button:
  Add a "dump" button for exporting agents.
Merge remote-tracking branch 'origin/topic/bf_tidy_code' into develop

* origin/topic/bf_tidy_code:
  Move Rspec dependency where appropriate + simplify a path.