CQRS framework for Single Page Applications