closes #79
For now we have some stuff out of that module to prevent infinite require loops (set_keymaps/clear_state), but once state goes into its own module as well then we can work it all into view.lua