Large Scale Refactor: The Hub

- Putting in a huge refactor around the hub architecture.