Modular architecture

New architecture for Spook.