When a startup founder allowed an employee's dog to start coming to the office, she had no idea he would become their biggest productivity hack.