Edinburgh dominate final quarter at Hive Stadium to beat plucky Dragons and move top of the United Rugby Championship (URC).