modular rails architecture notes