registerActionInMap(action, fn) {
    this.actionsMap[action] = fn;
  }
Registers/Sets a function for a given action
@param {String} action Name of the action.
@param {function} [fn] Function of the action