Improves closing and saving posts in the new editor

Fixes [this bug](https://github.com/wordpress-mobile/WordPress-iOS-Editor/issues/385).
Fixes [this bug](https://github.com/wordpress-mobile/WordPress-iOS-Editor/issues/388).

Also cleans up the code considerably.

/cc @bummytime 
Is this note to self to fix it in this PR or after?