Split main.js into views.js for Views and main.js for startup logic

Test Plan:
- Make sure everything still works
Add in react dev for TestUtils

Test Plan:
- None
Add a basic react view test

Also move localization tests to the end

Test Plan:
- Run tests.