Removed old viewmode and state legacy code from the browser.js
Removed old state code
Fixed failing tests after the unused code removal
Merge pull request #390 from hatched/remove-viewmode-state

Remove viewmode and old state object

This branch removes the old unused viewmode state code and state object. There should be no user facing changes to this, simply code removal

#### To QA
Do some exploratory QA around views changing in the sidebar, everything should work as expected.
Moved import and export to the deployer bar.
Merge pull request #385 from huwshimi/import-export-move

Moved import and export to the deployer bar.

Moved the import/export controls to the deployer bar

QA:
Without flags:
-The import/export controls should be in the header

With mv flag:
- Check that the header does not have the import/export controls
- The deployer bar import/export controls should now work