refactoring; added frontend layer commands, added interfaces for domain objects, divided phrase form on mediator modules