Another huge commit - added support for distributed modes
Big changes
another progress commit