McCloskey sees red but 13-man Ulster cling on for a big win in Edinburgh