More repackaging
Split BLMain into client, server, and core.