WIP: Big refactoring to make iocluster cleaner, more efficient and more extendable in the future