Fix factory method in command execution state handler
Refactor public interface of CommandExecutionStateHandler
Add editor by document resolving helper
Merge branch 'master' of git://github.com/perconik/perconik into develop

# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.