Cleaned up views and tables.
Added refresh js.
Added setup to register for chat events.