Refactored to use Q.when instead of .then to support none-promisebased chat-repositories