update replication tests to use mode (#602)

* refactor to_mission into dest_mission
* general refactor and clean up
* add raise error if mode is not pass through on options
update controllers to use :mode option parameter during replication. (#602)
--REMOVE-- quick fix before real fix is checked into development
code formating.
form export model (#716)
fix as_json issue with Condition
fix root parameter issue for condition#as_json
ability to write file during export. commented out but functional
form import model (#830)
tests for form import model (#829)
remove output statements.