Decoupled the platformed to a master/worker architecture

Also added a ton of todos.