Refactor blaze into core, server, and client packages