feat(content): connect authoring with content view

when closing authoring you get to content, when creating content
you go to authoring..

also adding some features to new api

and refactoring confirm when dirty into a service