Tiny abstraction over promises and command pattern to ease decoupling in Javascript project.