restructured codebase and removed a lot of old cruft (chat, hypersurface)